Index Out of Range Exception error message.

Asked By 0 points N/A Posted on -
qa-featured

Hi, I hope someone can help me out here!


I am receiving anIndexOutOfRangeException when I open the standard wsl file: InfragisticStyleLibrary.wsl using AppStylist for ASP.NET.

For more information please see attached screenshot.

Thanks.

SHARE
Answered By 0 points N/A #93296

Index Out of Range Exception error message.

qa-featured

Hi Marian,

This is thrown when an effort is made to approach the element of an array or accumulation with an index which is outside the bounds of the array or less than zero.

If you have the source code of your software then it is easy to point out the culprit of the problem.  This exception can occur on the following conditions:

  • The maximum index of a list must be less than the list size.
  • This exception may be thrown if the index is less than zero.

One solution to avoid the exception is to wrap the calling code to try…catch () blocks to ignore that ugly dialog.

I hope it helped.

Login/Register to Answer

Related Questions