Is giving full control for the NETWORK SERVICE user on c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files folder a good idea?

When I deploy my app on the iis, it started complaining about this access issue.

  • Dunno in v4, but in v2 it's not a big difference, because NS has already read permisions, and the one who's going to create files in that folder is the IIS Asp.Net Account, not Network Service. – Carlos Garcia May 26 '11 at 12:52
  • @carlos NS hasn't have any access on the folder I specified until I have given it. – tugberk May 26 '11 at 13:05

The appropriate way is (depending on your issue) to use aspnet_regiis.exe -ga "NT AUTHORITY\NETWORK SERVICE" which "grants the specified user or group access to the IIS metabase and other directories that are used by ASP.NET".

See http://msdn.microsoft.com/en-us/library/k6h9cz8h(v=vs.80).aspx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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