473,671 Members | 2,155 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.Argument OutOfRangeExcep tion: 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.Argument OutOfRangeExcep tion: 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\homep ages\36\d102265 973\core\login\ login.aspx Line: 18

Stack Trace:

[ArgumentOutOfRa ngeException: Length cannot be less than zero
Parameter name: length
System.String.S ubstring(Int32 startIndex, Int32 length) +17
System.Web.UI.U til.GetScriptLo cation(HttpCont ext context) +20
System.Web.UI.H tmlControls.Htm lForm.Render(Ht mlTextWriter output) +9
System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer) +24
ASP.Login_aspx. __Render__contr ol1(HtmlTextWri ter __output, Control parameterContai ner) in E:\kunden\homep ages\36\d102265 973\core\login\ login.aspx:1
System.Web.UI.C ontrol.RenderCh ildren(HtmlText Writer writer) +2
System.Web.UI.C ontrol.Render(H tmlTextWriter writer) +
System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer) +24
System.Web.UI.P age.ProcessRequ estMain() +190

Nov 18 '05 #1
1 9964
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*******@disc ussions.microso ft.com> wrote in message
news:F0******** *************** ***********@mic rosoft.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.Argument OutOfRangeExcep tion: 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\homep ages\36\d102265 973\core\login\ login.aspx
Line: 18

Stack Trace:
[ArgumentOutOfRa ngeException: Length cannot be less than zero.
Parameter name: length]
System.String.S ubstring(Int32 startIndex, Int32 length) +172
System.Web.UI.U til.GetScriptLo cation(HttpCont ext context) +202
System.Web.UI.H tmlControls.Htm lForm.Render(Ht mlTextWriter output) +95
System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer) +241
ASP.Login_aspx. __Render__contr ol1(HtmlTextWri ter __output, Control
parameterContai ner) in
E:\kunden\homep ages\36\d102265 973\core\login\ login.aspx:18
System.Web.UI.C ontrol.RenderCh ildren(HtmlText Writer writer) +27
System.Web.UI.C ontrol.Render(H tmlTextWriter writer) +7
System.Web.UI.C ontrol.RenderCo ntrol(HtmlTextW riter writer) +241
System.Web.UI.P age.ProcessRequ estMain() +1900


Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
4953
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 webserver runs that part of the script (see attached file, snippet.php), though, it doesn't go through. I don't get an error message or anything...it just returns a "1" (whereas it should return a "0") as far as I can tell. I have read the PHP...
6
2157
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 XP Pro SP 1, .Net Framework 1.1) and on our production server (Windows 2K SP 4, .Net Framework 1.1). I have simplified the code and data to isolate the problem. When I use the xsl:strip-space (Line 12) declaration in conjunction with the xsl:sort...
2
3044
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 the data grid is derived by: int nPatcom = (int) grid.DataKeys; Even tried this to no avail: int nID = Convert.ToInt32(grid.DataKeys); I've tried everything and spend days on this because it was working a month or so ago and I assumed that...
18
4863
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) Then isOk = False ElseIf Not (strDate.Length() = 6) Then isOk = False
2
3149
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 do not know where it is causing it but my guess would be something with the function below. Any help would be greatfull, as this would be a learning experience for me. For this example: swTitle.Text = "AutoCAD 2004" After the user selects the...
2
3464
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 Gridview_rowdatabound, I am dynamically building hyperlink control based on the values in the other fields. Here is my code for Gridview_rowdatabound. It does work sometimes though.
1
2309
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 Gridview_rowdatabound, I am dynamically building hyperlink control based on the values in the other fields. Here is my code for Gridview_rowdatabound. It does work sometimes though.
1
3227
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 sourceIndex, Array
14
2801
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 by df -k lopgod10:~/mycrfile # df -k /mnt/mvdg1/vset Filesystem 1K-blocks Used Available Use% Mounted on
0
8476
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8393
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8914
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8820
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8598
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
4406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2810
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1809
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.