DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

SYSTEM.INDEXOUTOFRANGEEXCEPTION: INDEX WAS OUTSIDE THE BOUNDS OF THE ARRAY.

 2 Replies
 0 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 3
New Around Here

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
 

Veteran Member
Posts: 838
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
I have this issue on a 804 version.
Only solution I am aware of is upgrading DNN to version 9 (can't remember what version exactly).

Alternatively you can set a scheduler to clear the cache (the works as well) every 4 hours (or so)
New Around Here
Posts: 3
New Around Here

Thanks for giving the solution.

Regards,

Himanshu Jain

 

 

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

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

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. 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.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved