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
ASP.NETWindows 8Internet Protocols

Avatar of undefined
Last Comment
ameriaadmin

8/22/2022 - Mon
Emmanuel Adebayo

This will ahve to do with your application code.

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

Regards
ASKER
ameriaadmin

i'm not a developer. i don't understand your answer. is it possible to introduce clearly?
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.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
ASKER
ameriaadmin

the problem still exist
ASKER CERTIFIED SOLUTION
ameriaadmin

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
ameriaadmin

we cant find the problem, but it was in auto updated module.