944,117 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1498
  • ASP.NET RSS
May 11th, 2006
0

Wierd Error message.

Expand Post »
Ok occasionally I get the following error message on my site
System.String Substring(Int32, Int32)
Error: Length cannot be less than zero. Parameter name: length

here's the wierd part, I don't use that Substring function,
I use System.String Substring(Int32) whose only parameter is start.
So I am getting an error from a function that I am not calling saying that a parameter that I am not passing is less than zero.

Any ideas?
Similar Threads
Reputation Points: 14
Solved Threads: 19
Posting Pro in Training
campkev is offline Offline
484 posts
since Jul 2005
May 11th, 2006
0

Re: Wierd Error message.

Cosmic rays? No, sorry, no clue! I just thought I'd respond so you know someone read and thought about your post.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
May 11th, 2006
0

Re: Wierd Error message.

lol
Reputation Points: 14
Solved Threads: 19
Posting Pro in Training
campkev is offline Offline
484 posts
since Jul 2005
May 18th, 2006
0

Re: Wierd Error message.

I would have to see the function code. The function you are a not calling.

I am at a loss as well.
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003
Feb 2nd, 2010
0
Re: Wierd Error message.
I would like to see stack trace and the corresponding source code with line numbers. Make sure .PDB file is latest.

I guess it is not easy to reproduce, otherwise debugger would have helped.
Reputation Points: 53
Solved Threads: 20
Junior Poster in Training
padtes is offline Offline
82 posts
since Aug 2009
Feb 2nd, 2010
0
Re: Wierd Error message.
It is legal to use one or two integer parameters because these overloads exist in the library: http://msdn.microsoft.com/en-us/libr...substring.aspx

It's possible that there is another call somewhere else? as other have said, we need to see the stack trace :-)
Reputation Points: 12
Solved Threads: 0
Newbie Poster
IrishChieftain is offline Offline
2 posts
since Nov 2008
Feb 3rd, 2010
0
Re: Wierd Error message.
This Method Give this error because the number is passed into the arg is negative so it's better to post the code to understand the problem
Reputation Points: 11
Solved Threads: 1
Newbie Poster
mahmoud_wow is offline Offline
20 posts
since Apr 2009
Feb 3rd, 2010
0
Re: Wierd Error message.
I really doubt they are going to post the source code for a problem that was posted almost four years ago.
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 839
Posting Genius
Ezzaral is offline Offline
6,761 posts
since May 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.
Previous Thread in ASP.NET Forum Timeline: form validation using jQuery in MVC
Next Thread in ASP.NET Forum Timeline: Assigning the int value back into the ID name





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC