2017-04-15 246 views
1

我得到了运行一个asp.net核心应用HTTP错误502.3 iis的10

HTTP Error 502.3 - Bad Gateway 
The specified CGI application encountered an error and the server terminated the process. 

和下面的错误在事件查看器下面就IIS 10错误

Maximum rapid fail count per minute of '10' exceeded. 

我也有标准输出设置为true但没有日志

以下dotnet的软件包安装在我的电脑上

enter image description here

当我使用的服务器和浏览本地主机DOTNET myapp.dll运行应用程序:5000(启用日志)调试显示出一些调试正常后和信息记录等待,等待,并没有发生

这里是DOTNET安装在我的服务器上的软件包。也是我的服务器加入一个域,如果它与运行最新的Windows Server 2016

enter image description here

我的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> 

有什么问题或任何建议。

+0

您是否找到了解决此问题的解决方案?我也有 – Techy

回答

0

检查服务器上的.net核心版本。如果应用程序建立在.net 1.1.2上,并且服务器具有.net core 2.0,则它将不起作用。您需要下载应用程序的版本。