Link to home
Start Free TrialLog in
Avatar of ameriaadmin
ameriaadminFlag for Armenia

asked on

iis error

hello

hello experts.
i have problem with my website on iis 8.5 on windows server 2012r2.
the site shows error below
................................


Server Error in '/' Application.
________________________________________
Index was outside the bounds of the array.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[IndexOutOfRangeException: Index was outside the bounds of the array.]
   System.Collections.ArrayList.Contains(Object item) +14405636
   UserControls_GadgetControl.Page_Load(Object sender, EventArgs e) +152
   System.Web.UI.Control.LoadRecursive() +71
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Control.LoadRecursive() +190
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3178

________________________________________
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.33440
Avatar of Emmanuel Adebayo
Emmanuel Adebayo
Flag of United Kingdom of Great Britain and Northern Ireland image

This will ahve to do with your application code.

Check all the loop you are refeering to in your application code.

Regards
Avatar of ameriaadmin

ASKER

i'm not a developer. i don't understand your answer. is it possible to introduce clearly?
Avatar of Johny Bravo
Johny Bravo

Hi ameriaadmin,
This error is not causing because of your server environment like iis/Operating system.

You will get this if you use an index that is higher than the items in the array. You need to check if the integer is within the index range of the array.
the problem still exist
ASKER CERTIFIED SOLUTION
Avatar of ameriaadmin
ameriaadmin
Flag of Armenia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
we cant find the problem, but it was in auto updated module.