• Login
  • Register

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.

You are not authorized to post a reply.
Sort:


New Member


Posts:2
New Member

    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:378
    Veteran Member

      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)
      Tjep's digital agencyRegards,
      Tycho de Waard

      Tjep's digital agency
      We just love DNN
      https://www.tjeps.com


      New Member


      Posts:2
      New Member

        Thanks for giving the solution.

        Regards,

        Himanshu Jain

         

         

        You are not authorized to post a reply.

        These Forums are dedicated to discussion of DNN Platform.

        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.

        Would you like to help us?

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

        Get Involved