NAV 7 Web Client - error when trying to open web client

ben5000ben5000 Member Posts: 110
edited 2012-10-30 in NAV Three Tier
Dear,

As in the following blog post : viewtopic.php?f=32&t=53505

I've troubles to connect to the web client when using windows authentication.

Here are the messages I get:

file.php?mode=view&id=3284

And after refresh:

file.php?mode=view&id=3285&sid=e921a2b1ba6f200594448a6307dae6f6

Here is what appears in the Application event viewer:
Type: System.UnauthorizedAccessException
Message: Access to the registry key 'Global' is denied.
StackTrace:
     at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
     at Microsoft.Win32.RegistryKey.InternalGetValue(String name, Object defaultValue, Boolean doNotExpand, Boolean checkSecurity)
     at Microsoft.Win32.RegistryKey.GetValue(String name)
     at System.Diagnostics.PerformanceMonitor.GetData(String item)
     at System.Diagnostics.PerformanceCounterLib.GetPerformanceData(String item)
     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: mscorlib
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

I've tried the following:

Complete reinstall of IIS, NAV Web Client, whole NAV features.
Rebuild of Performance counters
Edit registry to allow access to performance counters

It sure has something to do with the fact that I use windows logins (permissions missing?)

Thanks for your help ;)

Comments

  • ben5000ben5000 Member Posts: 110
    Just solved the error by adding the Guest group to the Performance Monitor User group.

    Now it works like a charm! :)

    Edit: now it's not working again :(

    If I add a single windows login to the Perf Monitor Users group it works..
  • ben5000ben5000 Member Posts: 110
    Ok so to solve this issue I added "Domain Users" group to the "Perf Monitor Users" group.

    I'll investigate with the people managing the domain if it could cause any security concerns but this is the only workable solution I found so far.
  • rodryrodry Member Posts: 7
    Same error, but after an update of server (2008R2).
    I resolve it adding Network service to Performance Monitor Users group.
Sign In or Register to comment.