System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length

G

Guest

I am getting the below error when asp.net tries to parse the .aspx file. The funny part is that the error only seems to be happening when viewing the page throuh IE 6 and not Netscape browsers. I am not sure exactly what is throwing it off, especially in the form tag

Has anybody seen this happening to them? It worked on IE briefly and then it started happening again. Any help would be greatly appreciated

Here is the full source of the error

System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: lengt

Source Error:

Line 16: </HEAD
Line 17: <body MS_POSITIONING="GridLayout"
Line 18: <form id="Form1" method="post" runat="server"
Line 19: <table width="750" height="500" border="0" align="center" cellpadding="0" cellspacing="0
Line 20: class="white-border"


Source File: E:\kunden\homepages\36\d102265973\core\login\login.aspx Line: 18

Stack Trace:

[ArgumentOutOfRangeException: Length cannot be less than zero
Parameter name: length
System.String.Substring(Int32 startIndex, Int32 length) +17
System.Web.UI.Util.GetScriptLocation(HttpContext context) +20
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +9
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
ASP.Login_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) in E:\kunden\homepages\36\d102265973\core\login\login.aspx:1
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +2
System.Web.UI.Control.Render(HtmlTextWriter writer) +
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
System.Web.UI.Page.ProcessRequestMain() +190
 
K

Ken Cox [Microsoft MVP]

Is it possible that IE or your proxy server is caching a bad version?

Make sure you have IE set to get a new page every time or add a question
mark ("?") to the file extension to make the URL "new" to the cache.

Do you have more than one form tag?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top