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

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.

r u trying to tell me that i need administrator rights?

try installing the setup with admin login and check if it works

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

ok i will let y now if i get any other solution

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

may be the setup file is corrupt..

try with a new one and check..

any luck with the new setup??

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.

commented: Words! +7

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

at last tune jadooo kar diya.....thanks