2

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:

  • Everyone
  • IUSR
  • NETWORK SERVICE
  • IIS_USRS

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:

enter image description here

This worked fine on the previous server, but I cannot figure out how to get it to work on the new server. Please advise.

Roy Hinkley
  • 10,111
  • 21
  • 80
  • 120
  • Check this answer : http://stackoverflow.com/questions/2532079/iis7-folder-permissions-for-web-application – Nipun Ambastha Aug 05 '13 at 12:35
  • @NipunAmbastha I do not have the account `IIS AppPool\ApplicationPoolName` on the system. IIS app pool runs under `NT Authority\Network Service`. – Roy Hinkley Aug 05 '13 at 12:39

1 Answers1

5

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

Community
  • 1
  • 1
Oscar
  • 13,594
  • 8
  • 47
  • 75