asp.net-mvc - 如何解决 "HTTP Error 500.19 - Internal Server Error" "<remove name="ExtensionlessUrlHandler-Integrated-4。 0"/>"

标签 asp.net-mvc asp.net-web-api asp.net-web-api2

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

enter image description here

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

这是我的 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>

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

我的应用程序池是:

enter image description here

如何解决这个问题?

最佳答案

有两件事需要检查您是否已正确安装 .Net。并且还检查了以下配置。

enter image description here

关于asp.net-mvc - 如何解决 "HTTP Error 500.19 - Internal Server Error" "<remove name="ExtensionlessUrlHandler-Integrated-4。 0"/>",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25821187/

相关文章:

asp.net-mvc - 使用 Glimpse 获取 InvalidCastException,即使它尚未安装。我该如何解决?

c# - 在 Web API 2 中创建更新方法

asp.net - 如何在同一服务器上托管 Web 应用程序和 API,同时将它们分开?

c# - 在异步操作中的 TransactionScope 的 WebAPI 中使用自定义 IHttpActionInvoker

asp.net-web-api - 网络 API 2 : Authorising against custom claims

c# - 是否可以在不创建 ViewModel 对象的情况下从 .NET 中的 REST api 获取复杂的 Entity Framework 对象?

c# - 删除 block html 标签。小MCE

c# - 无法加载我从未添加过的文件或程序集 'Microsoft.SharePoint.Library'

asp.net - 无法使用 asp.net core 身份登录

javascript - 在 asp.net mvc 4 中使用动态关键字时出错