ASP.NET IIS 7.5 HTTP 500.21错误 [英] ASP.NET IIS 7.5 HTTP 500.21 error

查看:862
本文介绍了ASP.NET IIS 7.5 HTTP 500.21错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在设置本地站点时遇到问题。

I am having an issue setting up a local site.

该项目正在使用ASP.NET Framework 4.0,我使用DefaultAppPool将4.0与托管管道模式一起使用as integrated。

The project is using ASP.NET Framework 4.0 and I have my DefaultAppPool to use 4.0 with Managed Pipeline Mode as Integrated.

这是我得到的错误:

HTTP Error 500.21 - Internal Server Error
Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list

Module  IIS Web Core
Notification    ExecuteRequestHandler
Handler PageHandlerFactory-Integrated
Error Code  0x8007000d
Requested URL   http://localhost:80/default.aspx
Physical Path   C:\Snugabye\Website\default.aspx
Logon Method    Anonymous
Logon User  Anonymous

Most likely causes:
Managed handler is used; however, ASP.NET is not installed or is not installed completely.
There is a typographical error in the configuration for the handler module list.

Things you can try:
Install ASP.NET if you are using managed handler.
Ensure that the handler module's name is specified correctly. Module names are case-sensitive and use the format modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule".

在控制面板 - >程序 - >打开/关闭窗口功能所有我看到的是Microsoft .NET框架3.5.1并没有关于4.0的东西我有什么遗漏?

Under Control Panel -> Programs -> Turn Window features on / off all I see is Microsoft .NET Framework 3.5.1 and nothing regarding 4.0 is there something I am missing?

推荐答案

您是否在IIS中注册了.NET?
如果没有运行以下命令:

Did you register .NET with IIS? If not run the following commands:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i

您需要从提升的命令提示符(...以管理员身份运行)执行此操作。

You need to do this from an elevated command prompt (...run as admin).

这篇关于ASP.NET IIS 7.5 HTTP 500.21错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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