I had about 30 users online attempting to use my application and I got 16 of these errors pretty much simultaneously. Note that the server appeared to be maxed out between 95 - 100% CPU just prior to the errors.
Method: System.Collections.Generic.Dictionary`2.Insert
StackTrace:
Message: System.Exception: Unhandled Error: ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at DotNetNuke.Entities.Tabs.TabController.FillTabInfo(IDataReader dr, Boolean CheckForOpenDataReader) at DotNetNuke.Entities.Tabs.TabController.GetTab(Int32 TabId, Int32 PortalId, Boolean ignoreCache) at DotNetNuke.Entities.Portals.PortalSettings.VerifyPortalTab(Int32 PortalId, Int32 TabId) at DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) 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 ---
In the 15 minutes prior to getting all these general exceptions, I got 6 of these.
Method: BRSE.Assessment.Comments.btnSubmit_Click
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at BRSE.Assessment.Comments.btnSubmit_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
So could it be that these are all directly related to heavy loading of the server? I am really struggling here and would appreciate any help or suggestions for testing. I have a 2GB Ram server and there is currently about 160MB free. But CPU is still maxed out.