By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,131 Members | 1,425 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,131 IT Pros & Developers. It's quick & easy.

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

P: n/a
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(HtmlTex tWriter 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(HtmlTextWrite r writer) +2
System.Web.UI.Control.Render(HtmlTextWriter writer) +
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +24
System.Web.UI.Page.ProcessRequestMain() +190

Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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?

"Hozi" <an*******@discussions.microsoft.com> wrote in message
news:F0**********************************@microsof t.com...
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: length

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) +172
System.Web.UI.Util.GetScriptLocation(HttpContext context) +202
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTex tWriter output) +95
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
ASP.Login_aspx.__Render__control1(HtmlTextWriter __output, Control
parameterContainer) in
E:\kunden\homepages\36\d102265973\core\login\login .aspx:18
System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +27
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +241
System.Web.UI.Page.ProcessRequestMain() +1900


Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Browse more ASP.NET Questions on Bytes