I just changed my .NET Framework Version of the Application Pools in IIS7 Manager, following Specify a .NET Framework Version for an Application Pool (IIS 7) instructions by Microsoft Technet. Now when I try to re-upload my ASP.NET page, it shows me a 500 - Internal server error. I have tried uploading it in .NET 2.0 (x86, x64, AnyCPU), and 4.0 (x86, x64, AnyCPU), and everything gives the same error. This is all the details the error gives me: "There is a problem with the resource you are looking for, and it cannot be displayed."
When keeping the .NET version 2.0 on the server, it works just fine. Also, when uploading
index.htm, it works fine as well, it just shows the HTML page.
This is on Windows Server 2008 R2, by the way.
I have finally found out how to get the error details. Here they are:
"PageHandlerFactory-Integrated" has a bad module
"ManagedPipelineHandler" in its module list.
Most likely causes:
- Managed handler is used; however, ASP.NET is not installed or is not installed completely.
- There is a typographical error in the configuration for the handler module list. Things you can try:
- Install ASP.NET if you are using managed handler.
- Ensure that the handler module's name is specified correctly. Module names are case-sensitive and use the format
I am sure that I have installed ASP.NET completely.