Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Production bug in DNN 5.1.4 causing application pool to hang ! The type initializer for Production bug in DNN 5.1.4 causing application pool to hang ! The type initializer for 'DotNetNuke.
Previous
 
Next
New Post
10/13/2009 3:58 PM
 

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
 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Production bug in DNN 5.1.4 causing application pool to hang ! The type initializer for Production bug in DNN 5.1.4 causing application pool to hang ! The type initializer for 'DotNetNuke.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out