I created an ASP.net MVC developed web application and I am trying to set up IIS.
The Error: Http error 500.19, error code 0x80070005, Cannot read configuration file due to insufficient permissions, config file: C:\inetpub\wwwroot\BudgetManagerMain\BudgetManager\web.config
If I set the AppPool to use 'administrator' i have no problems and can access the site just fine. If i set to NETWORK SERVICE (or anything else including self-created admin or non-admin user accounts), i get the above error.
Things I have tried:
using Process Monitor, here is a summary of what i found on the ACCESS DENIED event
...lots of stuff that seems irrelevant
User: NT AUTHORITY\NETWORK SERVICE
Simplest interpretation of the error: IIS has detected a folder called
and tried to read a web.config file from that location, but the Application Pool account hasn't been able to read a web.config file in that folder.
This is probably going to be because of NTFS permissions preventing the Network Service account (you noted above) from accessing that folder.
The Application Pool Account requires Read access to all folders and web.config files within the website.
User contributions licensed under CC BY-SA 3.0