Hi,
Before posting this in the Gemini tool, I would like to chat about this problem. I think it is caused by DNN caching problems not being thread-safe and thus deadlock. My soccer shop (BZOOX voetbalshop) hanged today and I needed to restart the application pool since it would not want to come up after this error.
I have the feeling it is caused by a not thread safe situation. My situation is next: I have usersonline = 5 min and I am working on various pc on which I log in with the same useraccount.
Any ideas?
J.
Server Error in '/' Application.
--------------------------------------------------------------------------------
An item with the same key has already been added.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: An item with the same key has already been added.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: An item with the same key has already been added.]
System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +56
System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +10417598
System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) +12
System.Collections.ObjectModel.KeyedCollection`2.AddKey(TKey key, TItem item) +115
System.Collections.ObjectModel.KeyedCollection`2.InsertItem(Int32 index, TItem item) +49
System.Collections.ObjectModel.Collection`1.Add(T item) +173
DotNetNuke.ComponentModel.SimpleContainer.RegisterComponentInstance(String name, Type contractType, Object instance) +172
DotNetNuke.ComponentModel.AbstractContainer.RegisterComponentInstance(Object instance) +95
DotNetNuke.ComponentModel.ComponentFactory.RegisterComponentInstance(Object instance) +111
DotNetNuke.Security.Membership.AspNetMembershipProvider..ctor() +259
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +146
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +298
System.Activator.CreateInstance(Type type, Boolean nonPublic) +79
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +10364331
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +28
System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) +816
DotNetNuke.Framework.Reflection.CreateInstance(Type Type) +95
DotNetNuke.ComponentModel.SingletonComponentBuilder.BuildComponent() +30
DotNetNuke.ComponentModel.SimpleContainer.GetComponent(Type contractType) +114
DotNetNuke.ComponentModel.AbstractContainer.GetComponent() +45
DotNetNuke.ComponentModel.ComponentFactory.GetComponent() +93
DotNetNuke.Entities.Users.UserOnlineController..cctor() +9
[TypeInitializationException: The type initializer for 'DotNetNuke.Entities.Users.UserOnlineController' threw an exception.]
DotNetNuke.Entities.Users.UserOnlineController..ctor() +0
DotNetNuke.HttpModules.UsersOnline.UsersOnlineModule.OnAuthorizeRequest(Object s, EventArgs e) +486
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171