.netcore 部署IIS Http Error 502.5
查看系统日志信息:
Application '/LM/W3SVC/3/ROOT' with physical root 'D:\xxx\' failed to start process with commandline 'dotnet .\xxx.Web.dll' with multiple retries. Failed to bind to port '23290'. First 30KB characters of captured stdout and stderr logs from multiple retries:
解决:
<aspNetCore processPath="dotnet." arguments=".\Gateway.Web.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
改为:
<aspNetCore processPath="C:\Program Files\dotnet\dotnet.exe" arguments=".\Gateway.Web.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />