Windows7 was installed today.
To develop a Web project that requires IIS to be installed, the Web program has been mapped to local IIS after installation, and the following error message appears
Handler "pagehandlerfactory-integrated" has an error module "Managedpipelinehandler" in its module list
Reason:
VS2010 default is the 4.0 framework, 4.0 of the framework is independent of the CLR, and 2.0 of the difference, if you want to run 4.0 of the site, you need to register the 4.0 framework with aspnet_regiis, and then use the 4.0 class pool, you can run 4.0 of the Web project.
How to register the 4.0 framework with aspnet_regiis:
The method is as follows, start cmd (Win key +r start cmd), find 4.0 in the directory, my machine directory is;
Note: To run the DOS window as an administrator.
Entry directory: C:\Windows\Microsoft.NET\Framework\v4.0.30319
Start cmd into the above directory, such as
also note : When you deploy a Web site on IIS7, IIS uses. NET Framwork2.0 by default, and if you run the. NET4.0 and. NET4.5 applications, you need to modify the settings of the application pool to modify the 2.0 version to 4.0. Modify the method as shown in:
IIS7 Deploying ASP. MVC4 Program Error Resolution