我在运行asp.net核心应用程序的iis 10上遇到以下错误
HTTP Error 502.3 - Bad Gateway
The specified CGI application encountered an error and the server terminated the process.
并在事件查看器中显示以下错误
Maximum rapid fail count per minute of '10' exceeded.
我还将stdout设置为true,但没有日志
我的计算机上安装了以下dotnet包
当我在服务器上使用dotnet myapp.dll运行应用程序并浏览本地主机:5000(启用日志)进行调试时,在显示一些正常的调试和信息日志后,它一直在等待,什么也没有发生
下面是安装在我的服务器上的dotnet包。此外,如果我的服务器与运行最新的windows server 2016相关,则会将其加入域中
我的web.config是
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<remove name="X-Powered-By" />
<clear /> </customHeaders>
</httpProtocol>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\NashrNegar.UI.dll" forwardWindowsAuthToken="true" stdoutLogEnabled="false" stdoutLogFile="C:\logs\" />
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="300000000" />
</requestFiltering>
</security> </system.webServer>
有什么问题或建议吗?
发布于 2017-11-03 05:49:34
检查服务器上的.net核心版本。如果应用程序是在.net 1.1.2上构建的,并且服务器使用的是.net核心2.0,那么它将无法工作。您将需要下载应用程序的构建版本。
https://stackoverflow.com/questions/43422969
复制相似问题