I am running IIS 8.0 locally on my machine for testing purposes. I have installed PHP through the web platform installer and everything is working correctly. The only issue I'm running into is the first request that's sent after the web server has started generates a 500.19 error. After the first initial request that generates the error everything works perfectly fine until the web server is shut down and started up again (or until my machine gets restarted). Here is a rundown of the error:

Module             IIS Web Core
Notification       BeginRequest
Handler            Not yet determined
Error Code         0x80070005
Config Error       Cannot read configuration file due to insufficient permissions
Config File        \\?\C:\Users\Aaron\Programming\aaronjwood\web.config

Requested URL      http://dev:80/aaronjwood
Physical Path      C:\Users\Aaron\Programming\aaronjwood
Logon Method       Not yet determined
Logon User         Not yet determined

I'm not using any kind of web.config file since all of the code I'm working on is either written in PHP or Perl. Is this because it's looking for a web.config file but can't find one? Is there a way to tell IIS not to look for one? I am much more experienced with Apache so this error is new to me.

up vote 1 down vote accepted

I figured this out. It was a silly mistake on my part. I didn't have the appropriate permissions on the directory. I needed to add the IIS_IUSRS group to the directory; I incorrectly had the IUSR user which allowed everything to work but not without throwing that initial error first.

Please check the folder that contains your web.config file. if that is shared on the network and remove the sharing. Doing this resolved the issue for me .

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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