HTTP Error 500.0 - Internal Server Error
Internal Server Error
Solution:
1. Be sure you have .NET Extensibility Feature installed on server.
- Server manager
- Manage > Add role and features
- Web server IIS > web server > Application development
- Choose .NET Extensibility and install
2. Be sure you have modules added in system.server
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<add name="UrlRewrite" type="Rewriteurl.urlrewrite"/>
</modules>
.......
3. Be sure you are passing in IIS7
httpApp.Context.RewritePath("/?param=apple"); // wrong
httpApp.Context.RewritePath("/default.aspx?param=apple"); // right
4. If using IIS7
<system.webServer> <handlers> <remove name="ExtensionlessUrl-Integrated-4.0"/> <remove name=" ExtensionlessUrl-ISAPI-4.0_32bit "/> </handlers>
</system.webServer>