【发布时间】:2018-11-15 17:51:59
【问题描述】:
我为我的新计算机安装 .NET core 版本 2.1.3,运行 windows server 2016 操作系统。我在 IIS 10 中托管。但它有错误 502
HTTP Error 502.5 - Process Failure
Common causes of this issue:
The application process failed to start
The application process started but then stopped
The application process started but failed to listen on the configured port
这是我的 web.config 的 sn-p
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\WebApplication1.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
</system.webServer>
</configuration>
【问题讨论】:
-
真的需要使用 web.config 文件或 launchSetting .json 吗?
-
web.config 文件在项目中自动生成
-
您使用哪个模板来创建您的项目?
-
我使用“Web Application”和API,但它们都有相同的错误
-
@AnkurShah:
launchSettings.json用于以 F5 启动或处于调试模式时的 IDE。它不被网络服务器或应用程序本身使用
标签: iis asp.net-core iis-10 window-server