2017-04-15 243 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,則它將不起作用。您需要下載應用程序的版本。