When starting upp a website on fresh install of IIS I sometimes get this error:
HTTP Error 500.19
There is not much information more than the error that says: The requested page cannot be accessed because the related configuration data for the page is invalid.
The first thing I check is the permission settings for the folders, after this one could just try to remove elements from web.config to figure out what inside web.config that is considered "invalid". Since I work a lot with Umbraco MOST of the time the problem is the <rewrite>-element. Without the right components installed on server these elements will be unknown to IIS and considered invalid.
What do to?
If you have the <rewrite>-element with <rules> configured in web.config make sure that you have installed "URL Rewrite", this is my favoruite method:
- Download and install "Web Platform Installer" from Microsofts website.
- Run Web Platform Installer, click on "Product" and search for "URL Rewrite".
- Click on the "Add"-button in the Install-column and follow the instructions.