Search code examples
sql-serveriiswindows-server-2012

Is it possible to Give IIS Users Permissions Outside of inetpub?


I am trying to give IIS full control permissions to a folder located on the C: drive of the machine that is hosting the website. It contains database files that are necessary for my application. Is there some way to give explicit permissions for IIS?

Someone posted that I could give NETWORK SERVICE full control over the directory, so I've already granted The NETWORK SERVICE account full permissions and I'm still not able to access the database files. Everything works fine when I store a copy of the database files inside of \inetpub\wwwroot folder.

IIS Version 8.5.9600.16384


Solution

  • Look at the Application Pool and grant the permissions to the App Pool identity, or set the identity to a user who has the necessary permissions.