我在设置本地站点时遇到问题。
该项目使用 ASP.NET Framework 4.0,我的 DefaultAppPool 使用 4.0 并集成托管管道模式。
这是我得到的错误:
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 Framework 3.5.1,没有任何关于 4.0 的内容,是我缺少什么吗?
您是否向 IIS 注册了 .NET?
如果没有运行以下命令:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i
您需要从提升的命令提示符处执行此操作(...以管理员身份运行)。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)