【发布时间】:2021-04-06 12:43:41
【问题描述】:
这是我自动生成的 web.config 文件的内容:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\RRRRAdminFrontend.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
</system.webServer>
</location>
</configuration>
<!--ProjectGuid: 2b13cd10-9360-4795-8443-00aebad0bb00-->
错误信息
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information:
Module
IIS Web Core
Notification
Unknown
Handler
Not yet determined
Error Code
0x8007000d
Config Error
Config File
\\?\C:\inetpub\RRRRAdmin\web.config
Requested URL
http://rrrradmin.sharevista.com:80/
Physical Path
Logon Method
Not yet determined
Logon User
Not yet determined
Config Source:
-1:
0:
有谁知道我哪里出错了,或者我是否需要对此进行更改?我对使用 IIS 不太熟悉,所以如果有帮助,我可以展示其他代码 sn-ps。
【问题讨论】:
-
@LexLi 是的,这就是问题所在。我必须安装 2.2.8 核心运行时,因为它是在 Asp.Net Core 2.2 中开发的。谢谢!
标签: asp.net-core iis