本文介绍了如何修复:Handler“PageHandlerFactory-Integrated”具有坏模块“ManagedPipelineHandler”在其模块列表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在配置一个MVC 3项目,以工作在本地安装IIS,并遇到以下500错误:

I am configuring an MVC 3 project to work on a local install of IIS and came across the following 500 error:

ASP.Net没有完全与IIS安装,即使我在添加功能对话框中选中该框。要解决这个问题,我只需在命令提示符下运行以下命令:

It turns out that this is because ASP.Net was not completely installed with IIS even though I checked that box in the "Add Feature" dialog. To fix this, I simply ran the following command at the command prompt

%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i

如果我在32位系统上,它看起来像下面这样:

If I had been on a 32 bit system, it would have looked like the following:

%windir%\Microsoft.NET\Framework\v4.0.21006\aspnet_regiis.exe -i

我的问题是,是否有一种方法可以在Windows 7使用.NET 4.0(MVC 3)而不需要这个额外的步骤?

My question is, is there a way to install IIS on a windows 7 box to use .NET 4.0 (MVC 3) without taking this extra step?

推荐答案

原来,这是因为ASP.Net没有完全与IIS安装,即使我在添加功能对话框中选中该框。要解决这个问题,我只需在命令提示符下运行以下命令:

It turns out that this is because ASP.Net was not completely installed with IIS even though I checked that box in the "Add Feature" dialog. To fix this, I simply ran the following command at the command prompt

%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i

如果我在32位系统上,它看起来像下面这样:

If I had been on a 32 bit system, it would have looked like the following:

%windir%\Microsoft.NET\Framework\v4.0.21006\aspnet_regiis.exe -i

这篇关于如何修复:Handler“PageHandlerFactory-Integrated”具有坏模块“ManagedPipelineHandler”在其模块列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 07:58