473,387 Members | 1,596 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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
1 9947
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Penn Markham | last post by:
Hello all, I am writing a script where I need to use the system() function to call htpasswd. I can do this just fine on the command line...works great (see attached file, test.php). When my...
6
by: Mark Miller | last post by:
I have a scheduled job that uses different XSL templates to transform XML and save it to disk. I am having problems with the code below. The problem shows up on both my development machine (Windows...
2
by: hari | last post by:
Anyone have a link to solve this one? I am using the SqlData class in an asp.net page. The class fills a data grid which contains a column to render more data to a string builder class. The index of...
18
by: Atara | last post by:
In my apllication I use the following code: '-- My Code: Public Shared Function strDate2Date(ByVal strDate As String) As System.DateTime Dim isOk As Boolean = False If (strDate Is Nothing)...
2
by: manmit.walia | last post by:
Hello All and Thank You for your time, I am stuck on this exception handleing error. The problem is that when I run my application the application works perfect but sometimes, I get this error. I...
2
by: loga123 | last post by:
Hi All, I am using Link Button for DELETE on the gridview. When I click on DELETE link, I get the ArgumentOutOfRangeException. But...it deletes the record from table in the database. On...
1
by: loga123 | last post by:
Hi All, I am using Link Button for DELETE on the gridview. When I click on DELETE link, I get the ArgumentOutOfRangeException. But...it deletes the record from table in the database. On...
1
by: Ryan Liu | last post by:
Hi, When my code run to DataRow.Delete() It throws: System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: length at System.Array.Copy(Array sourceArray, Int32...
14
by: prasadjoshi124 | last post by:
Hi All, I am writing a small tool which is supposed to fill the filesystem to a specified percent. For, that I need to read how much the file system is full in percent, like the output given...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.