Sunday, November 25, 2012

Fix “HTTP Error 500.19 - Internal Server Error” when install ASP.Net MVC 3 site on IIS 8

Some time ago I moved MVC 3 site to the Windows Server 8 with IIS 8. Right after installation I got the following error:

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

Site worked properly on Windows Server 2008 R2 with IIS 7.5, so web.config was correct. The problem was in missing URL rewrite module for IIS. In the site I used several rewrite rules which are stored in web.config as you probably know. As URL rewrite module was not installed on the server, whole section with rewrite rules was not recognized and IIS shown above error. After installation of URL rewrite module, site became working.

This is not ASP.Net MVC specific problem. It may occur for general ASP.Net sites as well. So hope that this tip will help you if you will get the same problem.

No comments:

Post a Comment