gpt4 book ai didi

ASP.NET IIS 7.5 HTTP 500.21 错误

转载 作者:行者123 更新时间:2023-12-03 04:41:55 25 4
gpt4 key购买 nike

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

该项目使用 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".

在“控制面板”->“程序”->“打开/关闭 Window 功能”下,我看到的只是 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

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

关于ASP.NET IIS 7.5 HTTP 500.21 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22952115/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com