错误 HTTP 500.19 - 内部服务器错误 (0x8007000d)

时间:2021-06-04 05:30:48

标签: api iis .net-core runtime-error publish

我有一个应用程序 API .net 核心,我发布了它。但是当我想用 IIS 运行时,以错误结束:Error HTTP 500.19 - Internal Server Error (0x8007000d)

这个错误是因为IIS没有识别web.config中aspNetCore的配置

我该如何解决?

and thisenter image description hereenter image description here

1 个答案:

答案 0 :(得分:1)

出现此问题的原因是 ApplicationHost.config 或 Web.config 文件包含格式错误或无法识别的 XML 元素。 IIS 无法识别未安装模块的 XML 元素。例如,IIS URL Rewrite 模块。

分辨率:

  1. 从 ApplicationHost.config 或 Web.config 文件中删除格式错误的 XML 元素。
  2. 检查未识别的 XML 元素,然后安装相关的 IIS 模块。
  3. 安装URL rewriting module