如何解决:处理程序和QUOT; PageHandlerFactory集成的"有一个坏模块" ManagedPipelineHandler"在其模块列表 [英] How to fix: Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list

查看:155
本文介绍了如何解决:处理程序和QUOT; PageHandlerFactory集成的"有一个坏模块" 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:

处理程序PageHandlerFactory集成的在其模块列表有一个坏模块ManagedPipelineHandler。

Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list.

原来,这是因为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安装IIS 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

这篇关于如何解决:处理程序和QUOT; PageHandlerFactory集成的"有一个坏模块" ManagedPipelineHandler"在其模块列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆