views:

757

answers:

1

I am unable to upload files to website hosted under IIS7. I have already given write permissions to "IUSR_websitename" and set the property in web.config also.

I am able to upload files with out log in to application at the time of user registration. But once log in to application, if I upload files, it is giving "Access denied" error.

Please help me.

A: 

Is your web site set up to do impersonation? If so, it's using the user's credentials not those of the worker process after you authenticate.

tvanfosson
I have just set the <identity impersonate="true" /> in web.config.
I wasn't suggesting that you do that. I just wondered if you were doing that, which would cause your problem since after authentication the process would no longer have rights to write to the upload directory.
tvanfosson