如何修复:处理程序“PageHandlerFactory-Integrated"有一个坏模块“ManagedPipelineHandler"在其模块列表中 [英] How to fix: Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list

查看:32
本文介绍了如何修复:处理程序“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:

处理程序PageHandlerFactory-Integrated"有一个坏模块其模块列表中的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.NETFramework64v4.0.30319aspnet_regiis.exe -i

如果我使用的是 32 位系统,它会如下所示:

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

%windir%Microsoft.NETFrameworkv4.0.21006aspnet_regiis.exe -i

我的问题是,是否有一种方法可以在 Windows 7 机器上安装 IIS 以使用 .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.NETFramework64v4.0.30319aspnet_regiis.exe -i

如果我使用的是 32 位系统,它会如下所示:

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

%windir%Microsoft.NETFrameworkv4.0.21006aspnet_regiis.exe -i

记得以管理员身份运行命令提示符 (CTRL+SHIFT+ENTER)

Remeber to run the command prompt as administrator (CTRL+SHIFT+ENTER)

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

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