[英]IIS Throws Config File Error - 0x8007000d when trying to deploy netcore2.0 App
我正在嘗試將 netcore2.0 MVC 應用程序部署到 IIS 並不斷收到上述錯誤。 文件權限設置正確,我檢查了運行時是否已下載。 錯誤如下:
Module
IIS Web Core
Notification
Unknown
Handler
Not yet determined
Error Code
0x8007000d
Config Error
Config File
\\?\E:\Dev\test-deploy\web.config
Requested URL
http://localhost:4231/
Physical Path
Logon Method
Not yet determined
Logon User
Not yet determined
以下是我的配置文件(由 vs 代碼生成):
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath=".\Coneckt.Web.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
</system.webServer>
</configuration>
<!--ProjectGuid: 2833ed36-9a18-47b6-8f33-8998356796d9-->
發生此錯誤的原因是 ApplicationHost.config 或 Web.config 文件包含格式錯誤的 XML 元素,您需要從 ApplicationHost.config 或 Web.config 文件中刪除格式錯誤的 XML 元素。
您還可以參考此鏈接,了解如何在 IIS 上部署 ASP.NET Core: Host ASP.NET Core on Windows with IIS 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.