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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationSite crashesSite crashes
Previous
 
Next
New Post
6/29/2010 9:49 AM
 
I have this issue where the site runs fine for a few days and then crashes.  The last time it happened we had this in the event viewer:

System.Exception: Unhandled Error: ---> System.TypeInitializationException: The type initializer for 'DotNetNuke.Security.Roles.RoleController' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.Collections.ObjectModel.KeyedCollection`2.AddKey(TKey key, TItem item) at System.Collections.ObjectModel.KeyedCollection`2.InsertItem(Int32 index, TItem item) at System.Collections.ObjectModel.Collection`1.Add(T item) at DotNetNuke.ComponentModel.SimpleContainer.AddBuilder(Type contractType, IComponentBuilder builder) at DotNetNuke.ComponentModel.SimpleContainer.RegisterComponentInstance(String name, Type contractType, Object instance) at DotNetNuke.ComponentModel.AbstractContainer.RegisterComponentInstance[TContract](Object instance) at DotNetNuke.ComponentModel.ComponentFactory.RegisterComponentInstance[TContract](Object instance) at DotNetNuke.Security.Membership.DNNRoleProvider..ctor() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture) at DotNetNuke.Framework.Reflection.CreateInstance(Type Type) at DotNetNuke.ComponentModel.SingletonComponentBuilder.CreateInstance() at DotNetNuke.ComponentModel.SingletonComponentBuilder.BuildComponent() at DotNetNuke.ComponentModel.SimpleContainer.GetComponent(IComponentBuilder builder) at DotNetNuke.ComponentModel.SimpleContainer.GetComponent(Type contractType) at DotNetNuke.ComponentModel.AbstractContainer.GetComponent[TContract]() at DotNetNuke.ComponentModel.ComponentFactory.GetComponent[TContract]() at DotNetNuke.Security.Roles.RoleProvider.Instance() at DotNetNuke.Security.Roles.RoleController..cctor() --- End of inner exception stack trace --- at DotNetNuke.Security.Roles.RoleController..ctor() at DotNetNuke.Entities.Portals.PortalInfo.get_AdministratorRoleName() at DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 tabID, PortalInfo portal) at DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabID, PortalAliasInfo objPortalAliasInfo) at DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---

Can anyone tell me if it is related to AD authentication?

CISSP
 
New Post
6/29/2010 11:26 AM
 
Hi Tim,

Having looked through the stack trace nothing stands out as obvious. Are there any other exceptions in the DNN Event Log?

What version of DotNetNuke are you using?

Regards,
Rhys

www.rmjcs.com - Mostly SQL Server Stuff
 
New Post
7/3/2010 8:19 AM
 
This is on a site running DNN 5.4.2.  That stack trace is usually the only one that shows up when the site goes down.  To restore service we have to restart the application pool.  I've seen one suggestion about not setting a login page under site settings to a custom page, so I tried that but the site still crashed after about 3 days.  I also tried "tweaking" some settings on the app pool itself.  Do you have any suggestions as to proper settings on the app pool?  I have 4 other sites, not DNN, running on the same IIS box, each using thier own app pool which all have the default settings.  I recently added one more app pool to handle a sub directory under the DNN site where we are developing our own .net pages, nothing fancy, though.  (I though maybe we were contributing to this issue, but this only started happening when I went from version 4.9.5 to 5.4.2 following a suggested upgrade path.)

CISSP
 
New Post
7/3/2010 7:06 PM
 
Hi Tim,

I don't think I'm sufficiently qualified with app pools in a DNN environment to offer specific advise, but as a temporary measure you could configure them to automatically recycle, perhaps nightly, which might prevent the site reaching the point where it needs human intervention to restart it. There are a bunch of options on the app pool property page in IIS for different ways to do this.

The other thing worth doing would be to set up some sort of performance monitoring on the server (Perfmon.exe is fine) because something failing every three days or so could suggest a resource problem - memory being the obvious candidate.

Given what you've described I would treat this as a Windows/IIS/ASP.Net problem, rather than a DNN problem, and investigate accordingly.

Good luck,
Rhys

www.rmjcs.com - Mostly SQL Server Stuff
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationSite crashesSite crashes


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