Fork501 Posted March 21, 2007 Posted March 21, 2007 I am having an issue currently, where if I open my Access database (It's not open Exclusively. Just open to where you see a list of tables/queries/etc), I get the following error on my website: (Line 253 is highlighted) Length cannot be less than zero. Parameter name: length 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: Length cannot be less than zero. Parameter name: length Source Error: Line 251:// try{ Line 252: Line 253: LeftNavMain(); Line 254: Line 255: string strSQL = ""; Source File: c:\Inetpub\Intranet\Testing\NewTemplate\phonedir.aspx Line: 253 Stack Trace: [ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length] System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +2848241 Consolidated.Intranet.Error_Handler(String ex) +254 Consolidated.Intranet.LeftNavMain() +511 ASP.phonedir_aspx.__Render__control2(HtmlTextWriter __w, Control parameterContainer) in c:\Inetpub\Intranet\Testing\NewTemplate\phonedir.aspx:253 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +2065883 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24 System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +59 System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +68 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +37 System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24 System.Web.UI.Page.Render(HtmlTextWriter writer) +26 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896 This particular function is used to create the side-menu, which is defined through the database. Any and all help will be GREATLY appreciated! I've been experiencing this issue for about 2 months, now. It's never happened before. Thanks in advance! ~Derek Quote Check out my blog! DevPaper.NET
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.