500 Internal Server Error after changing .NET Framework Version to 4.0 in IIS7

Posted by René on Server Fault See other posts from Server Fault or by René
Published on 2010-09-03T16:06:21Z Indexed on 2012/12/01 5:06 UTC
Read the original article Hit count: 528

Filed under:
|
|


I just changed my .NET Framework Version of the Application Pools in IIS7 Manager, following these instructions. 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 on 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.

EDIT:
I have finally found out how to get the error details. Here they are:
"Handler "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 modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule"."

I am sure that I have installed ASP.NET completely.

Please help me,
-René

© Server Fault or respective owner

Related posts about windows-server-2008

Related posts about iis7