Hello and Merry Christmas everyone!
Pretty please, help me with this one!
I have one big problem I can't solve for quite some time, can someone please point me into the right direction so I can start fixing the problem.
I help maintaining a website which randomly crashes :( The same error repeating is this one:
[click for bigger image]
Where should I start looking for the code, which put an index outside of bounds, usually those errors point to some line in code, but I can't find any here :(
After I rebooted the website through web.config reset I looked into the Event Viewer. You can see a red message with this error:
---------------------------------------------------------------------------------------------------------------
AssemblyVersion: 5.4.2
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL: /default.aspx?randval=0.35881220758892596
AbsoluteURL: /default..aspx
AbsoluteURLReferrer: http://www.... I removed the URL
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 3afab93c-a801-4376-a987-08e02f195637
InnerException: The type initializer for 'DotNetNuke.Entities.Users.UserController' threw an exception.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Collections.Generic.List`1.Insert
StackTrace:
Message: System.TypeInitializationException: The type initializer for 'DotNetNuke.Entities.Users.UserController' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. at System.Collections.Generic.List`1.Insert(Int32 index, T item) at System.Collections.ObjectModel.Collection`1.InsertItem(Int32 index, T 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.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.AspNetMembershipProvider..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.Membership.MembershipProvider.Instance() at DotNetNuke.Entities.Users.UserController..cctor() --- End of inner exception stack trace --- at DotNetNuke.Entities.Users.UserController.GetUserCountByPortal(Int32 portalId) at DotNetNuke.Entities.Portals.PortalInfo.Fill(IDataReader dr) at DotNetNuke.Common.Utilities.CBO.FillObjectFromReader(Object objObject, IDataReader dr) at DotNetNuke.Common.Utilities.CBO.CreateObjectFromReader(Type objType, IDataReader dr, Boolean closeReader) at DotNetNuke.Common.Utilities.CBO.FillObject[TObject](IDataReader dr) at DotNetNuke.Entities.Portals.PortalController.GetPortalCallback(CacheItemArgs cacheItemArgs) at DotNetNuke.Common.Utilities.DataCache.GetCachedData[TObject](CacheItemArgs cacheItemArgs, CacheItemExpiredCallback cacheItemExpired, Boolean storeInDictionary)
Source:
---------------------------------------------------------------------------------------------------------------
Can please someone look intothis and help me!
Thank you very much for your time!
William