Products

Solutions

Learn More

Partners

Community

Blog

About

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Occasionally, DNN starts throwing "IndexOutOfRangeException" and stops workingOccasionally, DNN starts throwing "IndexOutOfRangeException" and stops working
Previous
 
Next
New Post
7/11/2016 12:23 PM
 
Hi,
This has happened three times in a few weeks, version is 8.0.3, it's a very old install with a very "rich" history.
Symptoms:
on occasion DNN starts throwing the following exception (logged in Windows logs, does not show in DNN logs):
----------------------------
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 System.Web.Mvc.ViewEngineCollection.ClearItems()
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.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
----------------------------
When this happens, all websites start malfunctioning and either don't return all page elements (miss graphics, omit CSS files, etc) or return an error and don't load at all. At each "failure" a new error is logged as above.
Recycling the IIS worker process solves the issue, but of course, it could come back at any time.
I had thought it might be connected to the issue I've described here:
http://www.dnnsoftware.com/forums/forumid/108/threadid/531120/scope/posts
so I have made the indexing happen once per hour and wait 50m before retrying. However this didn't help (not much, at least) as the error happened again this morning.
I gave a look at the IIS logs and spotted nothing interesting and no unusual requests.
As I've said this is an old installation which could have loads of undetected problems, I'd like ideas on how to even start troubleshooting.
Thanks,
Sergio
 
New Post
7/12/2016 6:33 AM
 

I just had the same exact issue on this past Friday. The website has been running fine for about a week, and then all of a sudden different errors would popup and the website would eventually return the standard server error page to the users. Below is my event log and it looks to be identical to Sergio's:

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 System.Web.Mvc.ViewEngineCollection.ClearItems()
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.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)

 
New Post
7/13/2016 6:29 PM
 
does it help to restart the application in IIS?

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/14/2016 6:09 AM
 
Yes, re-starting IIS does work but only until the next time. This past Friday it occurred twice and I had to re-start the application both times. Once around 9:30 EST and again around 1:30 EST.
 
New Post
7/14/2016 6:14 AM
 
Same for me. Recycling the worker process is the way to do it as I can't hit "restart" from the DNN interface because I'm normally unable to reach it (when the problem is happening).
FY: it's happened once again in the mean time. Quite worrying, I must add.
Thanks!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Occasionally, DNN starts throwing "IndexOutOfRangeException" and stops workingOccasionally, DNN starts throwing "IndexOutOfRangeException" and stops working


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out