Server Error in '/' Application.

StartIndex cannot be less than zero. Parameter name: startIndex

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.ArgumentOutOfRangeException: StartIndex cannot be less than zero. Parameter name: startIndex

Source Error:


Line 2:  
Line 3:  <!--
Line 4:  document.write("<%= WriteSideMenu() %>");
Line 5:  //-->

Source File: D:\websites\039300\KEDCO_ED\includes\sidemenu.aspx    Line: 4

Stack Trace:


[ArgumentOutOfRangeException: StartIndex cannot be less than zero.
Parameter name: startIndex]
   System.String.Substring(Int32 startIndex, Int32 length) +118
   System.String.Substring(Int32 startIndex) +11
   KEDCO_ED.includes.sidemenu.WriteSideMenu() in C:\CRA Projects\039300_KEDCO_ED\Work\includes\sidemenu.aspx.cs:32
   ASP.sidemenu_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) in D:\websites\039300\KEDCO_ED\includes\sidemenu.aspx:4
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
   System.Web.UI.Control.Render(HtmlTextWriter writer) +7
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
   System.Web.UI.Page.ProcessRequestMain() +1926


Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032