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 favorite method:
- Download "URL Rewrite Module 2.1" from Microsofts website (scroll to the bottom of the page).
- Run the installer
- Restart IIS to be on the safe side.