2:win7 iis7

本文介绍了在使用VS2010将ASP.NET应用程序部署到Win7自带的IIS6时遇到的一个常见错误:处理程序PageHandlerFactory-Integrated在模块列表中有错误模块ManagedPipelineHandler。文章提供了详细的解决步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

asp.net 发布到IIS中出现”处理程序“PageHandlerFactory-Integrated”在其模块列表中有一个错误模块“ManagedPipelineHandler”“错误的解决方法

     今天自己的电脑上发布一个asp.net到iis上时,出现了这个错误,baidu一下解决了,记录下来,以便以后在遇到时可以迅速解决。

开发工具:vs2010

windows:win7

iis:6(window 7 自带的)

发布后出现错误:

出现原因:由于先安装.NetFramework v4.0后安装iis6所致(百度的,不知道是否正确)

解决方法:以管理员的身份运行vs命令行工具,然后运行一下asp.net_regiis.exe -i 命令,安装成功后重启iis便可,如下图:

 

 

 

 

 

IIS 7.5 error: Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in its module list

Today I installed Clean Windows Web Server 2008 R2 64-bit with IIS 7.5. To my surprise opening .NET 4.0 application I received the following error:


IIS 7.5 Detailed Error - 500.21 - Internal Server Error


Server Error in Application "DEFAULT WEB SITE"
Internet Information Services 7.5


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


[Detailed Error Information]
Module IIS Web Core
Notification ExecuteRequestHandler
Handler PageHandlerFactory-Integrated
Error Code 0x8007000d
Requested URL http://localhost:80/default.aspx
Physical Path C:/inetpub/wwwroot/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".


[Links and More Information]
IIS core does not recognize the module.
View more information »

As it turns out, some glitch caused this problem, and somehow .NET was not registered with IIS.

Running the following commands solved this issue:

 


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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值