Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have problems setting up the right permissions on my server for writing, modifying content. I simple get a "Access denied" when I try to unpack a zip-file or write some files to the folder using ASP.NET.

What recommendations do you recommend for setting up permissions for ASP.NET (writing files, unpacking files)?

share|improve this question
up vote 0 down vote accepted

By default this is the application pool identity's user that needs write access. That's Network Service by default for IIS6 and IIS7 (but not IIS7.5) Check the properties of your app pool and try setting that.

If you have impersonation turned on in ASP.NET then it will be your website's identity (anonymous or authenticated if you use Windows Authentication).

To find out for sure which user is denied permission, run process monitor from It's safe to run on a production server. After getting a capture while you reproduce the error, search for the word 'denied'. That will show which user tried to access what.

share|improve this answer
Setting the application user to write solves this issue! – janhartmann Dec 14 '09 at 9:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.