Options

NAV 7 Web Client - issues when accessing any page

ichladilichladil Member Posts: 68
edited 2012-07-04 in NAV Three Tier
Hello,

I have installed with standard setups the web client for NAV 7. Anytime I try to access the default http://localhost:8080/Card.aspx?page=9006, the following errors are returned (I am running reloads between the errors).

A server error has occurred, and the content cannot be displayed. Refresh the page or open a new browser window.

followed on reload by the following message (btw I have got the company filled in web.config):

Could not open the '' company.
Cannot load Counter Name data because an invalid index '' was read from the registry.

and on the next reload by:

Could not open the '' company.
The underlying native dispatcher has been released

The event log contains the following:

Type: System.InvalidOperationException
Message: Cannot load Counter Name data because an invalid index '' was read from the registry.
StackTrace:
at System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp)
at System.Diagnostics.PerformanceCounterLib.get_NameTable()
at System.Diagnostics.PerformanceCounterLib.get_CategoryTable()
at System.Diagnostics.PerformanceCounterLib.CategoryExists(String machine, String category)
at System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName, String machineName)
at System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName)
at Microsoft.Dynamics.Framework.UI.WebBase.Diagnostics.CounterExistsPerformanceCounterEnabledStrategy.get_IsEnabled()
at Microsoft.Dynamics.Framework.UI.WebBase.Diagnostics.SystemPerformanceCounter.Increment()
at Microsoft.Dynamics.Framework.UI.WebBase.ClientSessionManagerBase.OnClientSessionCreated(ClientSessionCore createdSession)
at Microsoft.Dynamics.Framework.UI.ClientSessionManagerCore.CreateClientSession(String sessionId)
at Microsoft.Dynamics.Framework.UI.ClientSessionManagerCore.EnsureSession(String sessionId)
at Microsoft.Dynamics.Framework.UI.Web.ClientSessionManager.EnsureSession()
at Microsoft.Dynamics.Framework.UI.Web.FormControl.OnInitCore(EventArgs e)
at Microsoft.Dynamics.Framework.UI.Web.FormControl.<>c__DisplayClass3.<OnInit>b__2()
at Microsoft.Dynamics.Framework.UI.Web.WebEventExecutor.<>c__DisplayClass3.<Execute>b__2()
at Microsoft.Dynamics.Framework.UI.Web.WebEventExecutor.ExecuteCore[T](Func`1 webEvent, Func`1 condition)
Source: System

alternatively the other message:

Type: System.ArgumentNullException
Message:
Value cannot be null.
Parameter name: key
ParamName: key
StackTrace:
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
at Microsoft.Dynamics.Framework.UI.WebBase.WebSessionStateProvider.Unregister(ClientSessionBase clientSession)
at Microsoft.Dynamics.Framework.UI.WebBase.ClientSessionManagerBase.OnClientSessionRemoved(ClientSessionCore removedSession)
at Microsoft.Dynamics.Framework.UI.ClientSessionManagerCore.RemoveClientSession(ClientSessionCore clientSession)
at Microsoft.Dynamics.Framework.UI.ClientSessionCore.Dispose(Boolean disposing)
at Microsoft.Dynamics.Framework.UI.WebBase.ClientSessionBase.Close()
at Microsoft.Dynamics.Framework.UI.Web.ClientSession.OnExitProcessing()
at Microsoft.Dynamics.Framework.UI.WebBase.ClientSessionBase.ExitProcessingCore()
at Microsoft.Dynamics.Framework.UI.WebBase.ClientSessionBase.ExitProcessing()
at Microsoft.Dynamics.Framework.UI.Web.FormControl.UnloadCleanup()
at Microsoft.Dynamics.Framework.UI.Web.FormControl.<OnUnload>b__17()
at Microsoft.Dynamics.Framework.UI.Web.WebEventExecutor.<>c__DisplayClass3.<Execute>b__2()
at Microsoft.Dynamics.Framework.UI.Web.WebEventExecutor.ExecuteCore[T](Func`1 webEvent, Func`1 condition)
Source: mscorlib

Any hints?

Thanks ahead,
Igor

Answers

  • Options
    kinekine Member Posts: 12,562
    Try to log through Win client first, it looks like there is no company selected into which it should log you in.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    ichladilichladil Member Posts: 68
    Hi Kine,

    I have logged in with win client several times before. Now I have retried that just to check whether it helps or not. Unfortunately it did not help.

    Any other hints?

    Thanks,
    Igor
  • Options
    kinekine Member Posts: 12,562
    And if you add this parameter into the URL? company=CRONUS%20International%20Ltd.

    (http://localhost:8080/List.aspx?company ... &page=9006)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    ichladilichladil Member Posts: 68
    Hi Kine,

    it didn't help. The error message has changed to:

    Could not open the 'CRONUS International Ltd.' company.
    The underlying native dispatcher has been released

    The event logs are still the same as it used to be.

    Igor
  • Options
    kinekine Member Posts: 12,562
    Have you installed all on the default settings or you have changed some ports when installing?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    Filip_CrombezFilip_Crombez Member Posts: 13
    I have exactly the same problem (in webclient and in sharepoint)! I tried many things already without improvement.
    What i noticed is that in sharepoint, I can add a webpart and refer to a page, but when saving to see the result, i get the same error as within webclient.

    'A server error has occurred, and the content cannot be displayed'
    'Could not open the '' company.
    Cannot load Counter Name data because an invalid index '' was read from the registry.'

    I expect to get the login screen or the 'demonstration company message' at this point?
  • Options
    kinekine Member Posts: 12,562
    It looks like some performance counters are not correctly created. Performance counters are in most cases created during install or first run of the application (they cannot be created just before using them). There are performance counters in NAV 2013 like
    ----Microsoft Dynamics NAV----
    # Calculated fields cache total requests
    # Command cache total requests
    # Open connections
    # Preferred connection total requests
    # Primary key cache total requests
    # Result set cache total requests
    % Calculated fields cache hit rate
    % Command cache hit rate
    % Preferred connection cache hit rate
    % Primary key cache hit rate
    % Query repositioning rate
    % Result set cache hit rate
    If they are not created, it could be the problem. Check it in the performance monitor.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    Filip_CrombezFilip_Crombez Member Posts: 13
    Hi Kamil,

    Thanks for your input. I did not notice these performance counters yet.
    But it seems they are on my laptop....
    I noticed the strange definition of the 'Management Service' in the performance monitor
    It is on the standard setup port 7045 in my case.
    The others ports are in my case not standard setup, I used 7055,7056,7057.
  • Options
    kinekine Member Posts: 12,562
    As I described on my blog, using non-standard ports make problems in the beta, in most cases something stop to work… I think you need to use standard ports to solve this issue...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    ichladilichladil Member Posts: 68
    Hi Kine,

    Back to your question - I have setup all of the ports as not-standard. I will try to use the standard ones and I will let you know if it helps or not. Thanks for the hint :).

    Igor
  • Options
    ichladilichladil Member Posts: 68
    Hi Kine,

    I have reinstalled NAV 2013 Demo with all the settings left at default. I have checked the Performance Counters and I cannot see there any related to NAV 2013, which may be actually an issue.
    Leaving the ports standard didn't help.

    Any other hints?

    Thanks,
    Igor
  • Options
    Filip_CrombezFilip_Crombez Member Posts: 13
    Same situation here... I installed NAV 2013 Beta with all default settings. (I changed the ports for the existing Nav 2009 R2 installation)
    Thanks for any hint! (I keep on searching and hope to find a solution...)
  • Options
    Filip_CrombezFilip_Crombez Member Posts: 13
    Hi Kamil !

    Thanks for your great hint about the performance counters!
    It was 'simply' solved by rebuilding the performance counters!

    start CMD with administrator rights
    c:\windows\system32
    lodctr.exe /R
  • Options
    ichladilichladil Member Posts: 68
    Hi,

    thanks for the performance counters hint and the command to rebuild the performance counters. It really helped and solved my issue :).

    Igor
  • Options
    kinekine Member Posts: 12,562
    Super! Happy to hear that… 8)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    guardiooguardioo Member Posts: 13
    I had tried the performance hit counter solution but same error message appear,

    I had to add users into administrator group and it solve the issues.

    But it shouldnt be given all user admin access.

    Do you guys had other solutions??
  • Options
    kinekine Member Posts: 12,562
    Than in your case it could be a problém of domain, delegation, or something like that…
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    ben5000ben5000 Member Posts: 110
    Hi all,

    The performance counter trick solved my problem but I still get the following error message :
    Could not open the '' company.  
    
    Access to the registry key 'Global' is denied.
    
    But this only happens when browsing with Google Chrome...
    On IE9 everything works like a charm.

    I tried to clean cookies/cache but still the same message :(
Sign In or Register to comment.