The handler PageHandlerFactory-Integrated has a bad module ManagedPipelineHandler in its module list

The handler PageHandlerFactory-Integrated has a bad module ManagedPipelineHandler in its module list

When developing a web project, you need to install IIS. When publishing an asp.net website on a Windows 2008 r2 with IIS installed, the web program has been mapped to the local IIS, but when running it, the following error message appears: "The handler "PageHandlerFactory-Integrated" has an error module "ManagedPipelineHandler" in its module list."

The cause of this problem is that ASP.NET is not successfully registered with IIS. It is very likely that .Net Framework is installed first and then IIS is installed. To avoid this problem, install IIS first and then install .Net Framework.

The web project development tools and systems I want to release

① Development tools: vs2010, database: sqlserver

②Operating system: Windows 2008 R2

③IIS: IIS 7.5

windows7, after being deployed in the local IIS7, the .aspx page hosting the SL cannot be accessed, but it can be accessed if it is hosted in .html.

Pro-tested available repair methods:

Enter CMD and enter the following command

"%WINDIR%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe" -iru -enable

The detailed graphic steps below are not as simple as the command line above.

Note: The path for 32-bit operating systems is C:\Windows\Microsoft.NET\Framework\v4.0.30319

1. Detailed diagram of the above error:

2. Analysis of the above errors:

VS2010 uses the .NET 4.0 framework by default. The 4.0 framework is an independent CLR, different from .NET 2.0. If you want to run a website based on the .NET 4.0 framework, you need to register the .NET 4.0 framework with aspnet_regiis, and then use the class pool of the .NET 4.0 framework to run the web project of the .NET 4.0 framework.

The most likely cause of the above error is: installing .NetFramework v4.0 first and then installing IIS 7.5.

3. How to register the 4.0 framework with aspnet_regiis?

Here’s how:

① Find the directory where aspnet_regiis is located in the .NET 4.0 framework, search for aspnet_regiis in the root directory of drive C, and find the directory location of aspnet_regiis in the 4.0 framework. My directory is "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 and select 'Run as Administrator (A)')", and the "Administrator: Command Prompt" window will pop up

③Execute the command "cd C:\Windows\Microsoft.NET\Framework\v4.0.30319" to enter the "C:\Windows\Microsoft.NET\Framework\v4.0.30319" directory, as shown in the figure

Then execute the command "aspnet_regiis.exe -i" to register "aspnet_regiis". Wait for a while and aspnet_regiis will be successfully registered as shown in the figure

Seeing the interface in the picture, you can run the website deployed by .net4.0 in IIS!

To sum up, I hope it will be helpful to people who encounter the same problem. This is also an accumulation of experience in my own growth! Looking forward to your comments!

You may also be interested in:
  • Detailed explanation of Python logging module handlers usage
  • Detailed explanation of the use of Flutter permission_handler permission plugin
  • Detailed explanation of Python Handler processor and custom Opener principle
  • Mybatis-Plus3.2.0 MetaObjectHandler cannot globally populate public fields
  • Python cuts logs by time through TimedRotatingFileHandler
  • A brief discussion on troubleshooting SpringMVC HandlerInterceptor's weird issues
  • Complete example of MyBatis custom typeHandler
  • Spring HandlerInterceptor implementation principle code analysis

<<:  MySQL 5.7.25 compressed version installation and configuration method graphic tutorial

>>:  A brief talk about JavaScript parasitic composition inheritance

Blog    

Recommend

Briefly talk about mysql left join inner join

Preface I have been busy developing a cold chain ...

CSS realizes process navigation effect (three methods)

CSS realizes the process navigation effect. The s...

Solution to the ineffectiveness of flex layout width in css3

Two-column layout is often used in projects. Ther...

JS practical object-oriented snake game example

Table of contents think 1. Greedy Snake Effect Pi...

A brief analysis of how to use border and display attributes in CSS

Introduction to border properties border property...

VMware kali virtual machine environment configuration method

1|0 Compile the kernel (1) Run the uname -r comma...

Docker image creation Dockerfile and commit operations

Build the image There are two main ways to build ...

How to use the jquery editor plugin tinyMCE

Modify the simplified file size and download the ...

Simple steps to create a MySQL container with Docker

Preface We have already installed Docker and have...

Detailed explanation of Vue project packaging

Table of contents 1. Related configuration Case 1...

How to use Element in React project

This is my first time using the element framework...

Learn SQL query execution order from scratch

The SQL query statement execution order is as fol...

The principles and defects of MySQL full-text indexing

MySQL full-text index is a special index that gen...

HTML table markup tutorial (4): border color attribute BORDERCOLOR

To beautify the table, you can set different bord...

Detailed explanation of how to use several timers in CocosCreator

1. setTimeOut Print abc after 3 seconds. Execute ...