asp.net-mvc 如何解决“HTTP 错误 500.19 - 内部服务器错误”“<remove name="ExtensionlessUrlHandler-Integrated-4.0" />”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25821187/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-07 23:14:48  来源:igfitidea点击:

How to solve "HTTP Error 500.19 - Internal Server Error" "<remove name="ExtensionlessUrlHandler-Integrated-4.0" />"

asp.net-mvcasp.net-web-apiasp.net-web-api2

提问by MD TAHMID HOSSAIN

I want to upload my webapi to iis but i am getting the following error:

我想将我的 webapi 上传到 iis,但出现以下错误:

enter image description here

在此处输入图片说明

Config Source:
   24:     </modules>
   25:     <handlers>
   26:       <remove name="ExtensionlessUrlHandler-Integrated-4.0" />

Here is my webconfig file:

这是我的 webconfig 文件:

<handlers>
  <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  <remove name="OPTIONSVerbHandler" />
  <remove name="TRACEVerbHandler" />
  <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>

I am using windows 8.1. I have installed all features of IIS.

我正在使用 Windows 8.1。我已经安装了 IIS 的所有功能。

My application pool is:

我的应用程序池是:

enter image description here

在此处输入图片说明

how to solve this problem?

如何解决这个问题呢?

回答by codebased

There are two things to check that you have appropriate installed .Net. And also the following configurations are checked.

有两件事要检查您是否安装了适当的 .Net。并且还检查了以下配置。

enter image description here

在此处输入图片说明

回答by imran khan

You need to check these things. if your site is hosted on Windows Server 2008, 2012/R2 and 2016.

你需要检查这些东西。如果您的站点托管在 Windows Server 2008、2012/R2 和 2016 上。

enter image description here

在此处输入图片说明