-1

d set up file for my windows project in C#,works fine as far as diplay of forms is concerned

but any button when clicked gives the following error:
"length of parameters cannot be less than zero.
Parameter name: length"

there is no parameter called "length" suphrisingly in the form

i initially thot it might b because of blanksh text boxes, so filled default text.

But nothing helpd

Edited by rohini.vangury: n/a

4
Contributors
14
Replies
15
Views
7 Years
Discussion Span
Last Post by Jadooo
Featured Replies
  • 1

    [QUOTE=rohini.vangury;1119387]its not corrupt the stack trace gives the following error: System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length any1 any idea's?[/QUOTE] That's not much of a stack trace to go on. What's leading up to that? If you could post the full stack trace of the error and … Read More

0

I find a couple of people that have this issue and was able to resolve it by granting access to NetWork Service account.

Delete everything and recreate the folder copy all fresh files over and setup the permission for NetWork Service account to have Full access to the folder.

0

moreover it's a windows project
not a web project
so nothing related to the network

0

>length of parameters cannot be less than zero.

Show us exception trace.

Please read the rules before posting again, in particular the 'Keep It Clean' one - We strive to be a community geared towards the professional. We strongly encourage all posts to be in full-sentence English. Please do not use "leet" speak or "chatroom" speak.

0

its not corrupt

i even tried using the admin login.. it didint help

m not sure but i think it
fails to accept blank text boxes, labels
or even empty strings...
but i need all these for the initial page load condition

the stack trace gives the following error:


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

any1 any idea's?

1

its not corrupt
the stack trace gives the following error:


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

any1 any idea's?

That's not much of a stack trace to go on. What's leading up to that? If you could post the full stack trace of the error and some code that surrounds it, perhaps we could assist. As it stands, you are asking people to perform psychic debugging.

Votes + Comments
Words!
0

phew..........

finally got the culprit...

I had used the 'IndexOf' and 'Substring' in the code to fetch the current application path

Tried hardcoding the path and the error doesn't occur any more.

Thankx folks .. for all d suggestions

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.