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 6 Years Ago by rohini.vangury: n/a

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.

>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.

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?

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.

Comments
Words!

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.