Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
When you develop a Web project, you need to install IIS, and when you publish an ASP. NET Web site on Windows7, where IIS is installed, the Web program is mapped to local IIS, but you run the following error message " handler" Pagehandlerfactory-integrated "There is an error module in its module list" Managedpipelinehandler""
I want to publish the Web project development tools and the system used ① Development tools: VS2010, Database: SQL Server ② Operating System: Windows7 ③iis:iis 7.5 |
I. Details of the above error diagram:
Two. The above error analysis:
VS2010 defaults to the. NET 4.0 framework, the 4.0 framework is a standalone CLR, and, unlike. NET 2.0, if you want to run the. NET 4.0 Framework's Web site, you need to register the. NET 4.0 framework with aspnet_regiis and then use the. Net 4.0 framework of the class pool, you can run the Web project of the. NET 4.0 framework.
The cause of the above error is most likely due to the first installation. NETFramework IIS 7.5 was installed after v4.0.
Three. How do I register a 4.0 framework with aspnet_regiis?
Here's how:
① found in the. NET 4.0 framework under the ASPNET_REGIIS directory, in the C packing directory search aspnet_regiis, find 4.0 frame aspnet_regiis directory location, I directory for "C:\Windows\ microsoft.net\framework\v4.0.30319 ".
② Run the DOS command line as an administrator,
Execute "start → all programs → accessories → command prompt (right click" Run as Administrator (A) ') ", pop Up" Administrator: Command Prompt "window
③ executes the command "CD C:\Windows\Microsoft.NET\Framework\v4.0.30319" and Goes to the "C:\Windows\Microsoft.NET\Framework\v4.0.30319" directory,
Then execute the command "aspnet_regiis.exe-i", register "aspnet_regiis", wait a moment, Aspnet_regiis successfully registered
When you see the interface in the diagram, you can run it in IIS. net4.0 deployed Web site!
If it is a 64-bit Win7, it needs to be changed to:
"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe"-I.
Summed up at this point, I hope to meet the same problem of people have helped, this is their own growth of experience accumulation! Looking forward to your visit to treatise!
Error occurred in ASP. NET Publish to IIS: Handler "pagehandlerfactory-integrated" has an error module in its module list "Managedpipelinehandler