The website has been running fine for about a week, and then all of a sudden this error is happening randomly. When this happens,
any page on the site will show the attached Index outside the bounds of an array error. If you refresh the page will come up but all of the resources (CSS files will not load). if you refresh again the error will appear again. The only thing that "fixes" it is recycling the App Pool.
I am using DNN Community version 8.0.3.
Below is the exact error.
Exception information:
Exception type: IndexOutOfRangeException
Exception message: Index was outside the bounds of the array.
at System.Array.Clear(Array array, Int32 index, Int32 length)
at System.Collections.Generic.List`1.Clear()
at DotNetNuke.Web.Mvc.MvcHttpModule.Init(HttpApplication context)
at System.Web.HttpApplication.InitModulesCommon()
at System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers)
at System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context)
at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
Thread information:
Thread ID: 22
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Array.Clear(Array array, Int32 index, Int32 length)
at System.Collections.Generic.List`1.Clear()
at DotNetNuke.Web.Mvc.MvcHttpModule.Init(HttpApplication context)
at System.Web.HttpApplication.InitModulesCommon()
at System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers)
at System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context)
at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
I searched about this issue and find out that issue with 8.0.3 version and require to upgrade in above version.Is there any other patch option is available to resolve this issue?
Thanks & Regards,
Himanshu