I have been using windows 7 for quite a while now but I didn’t need to run a website in IIS. On most occasions, I simply use cassini to test out various applications. If you are planning to setup a new application on IIS 7.5 you are in for a surprise.
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code: 0x80070005
Config Error: Cannot read configuration file due to insufficient permissions
Basically what this error means is that IIS_User cannot access web.config file of your web application. So what would have caused this issue.. well a little feature called UAC which was introduced by microsoft with the release of windows vista.
The best solution to get around this issue is by applying correct permissions to the web.config file. To do so, simply follow the following steps:
- In Windows Explorer, locate the web.config file that is associated with the Web site.
- Right-click the web.config file
- Click Properties.
- Click the Security tab, and then click Edit.
- Click Add.
- In the Enter the object names to select box, type computername\IIS_IUSRS, click Check Names, and then click OK.
Note Computername is a placeholder for the computer name. - Click to select the Read check box, and then click OK.
- In the Web.config Properties dialog box, click OK.
And that’s it you are done :)


