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:


Line 13:             
Line 14:             context.Response.ContentType = "text/html"; 
Line 15:             XMLSEnviron environ = new XMLSEnviron(XMLSGlobal.Mode);
Line 16:             //string fileName = context.Request.QueryString.Get("xmls");
Line 17:             //if (string.IsNullOrEmpty(fileName))

Source File: g:\www\default.ashx    Line: 15

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +12990820
   System.Collections.Generic.Dictionary`2.set_Item(TKey key, TValue value) +15
   XMLS.XMLSLocation.GetApp(String name) +200
   XMLS.XMLSLocation..ctor(XMLSMode mode) +339
   XMLS.XMLSEnviron..ctor(XMLSMode mode) +83
   Handler.ProcessRequest(HttpContext context) in g:\www\default.ashx:15
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +188
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +71


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2558.0