473,854 Members | 1,781 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 9981
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
4969
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
2175
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
3057
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
4887
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
3162
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
3476
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
2325
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
3240
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
2827
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
9903
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
9754
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
11044
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
10692
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...
0
9526
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7927
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7084
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5754
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4168
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.