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
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
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
(http://localhost:8080/List.aspx?company ... &page=9006)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
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
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
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?
If they are not created, it could be the problem. Check it in the performance monitor.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
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.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
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
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
Thanks for any hint! (I keep on searching and hope to find a solution...)
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
thanks for the performance counters hint and the command to rebuild the performance counters. It really helped and solved my issue .
Igor
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
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??
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
The performance counter trick solved my problem but I still get the following error message :
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