Reputation: 10651
I have a .net 2.0 application that I have migrated from a Windows Server 2003/IIS6 to Windows Server 2008/IIS7
This application needs to write to a folder in the public folders section on the server. I have given full rights to:
Still the ASP.NET app cannot write to the folder. The folder is visible in IIS 7 Manager, and it exists on the file system.
Whenever I execute the part of the app that needs to write to the folder I receive the following error:
This worked fine on the previous server, but I cannot figure out how to get it to work on the new server. Please advise.
Upvotes: 2
Views: 20190
Reputation: 13990
In IIS7 is not like in previous version, you need to give permissions to the account under which the application pool is running:
See this:
IIS7 Permissions Overview - ApplicationPoolIdentity
And this:
IIS AppPoolIdentity and file system write access permissions
Upvotes: 5