The specified CGI application encountered an error and the server terminated the process

后端 未结 11 1242
轮回少年
轮回少年 2020-11-28 12:32

I am hosting a asp.net 5 application on azure, the code is complied for beta8, the application runs fine on the local environment and when i publish the code on the azure si

相关标签:
11条回答
  • 2020-11-28 13:00

    This can also happen if you have an infinite loop in your code.

    0 讨论(0)
  • 2020-11-28 13:02

    I recently had the same issue and was able to solve it by setting the requestTimeout within the web.config:

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <location path="." inheritInChildApplications="false">
        <system.webServer>
          <handlers>
            <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
          </handlers>
          <aspNetCore processPath=".\PROJECT.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" requestTimeout="00:30:00"/>
        </system.webServer>
      </location>
    </configuration>
    
    0 讨论(0)
  • 2020-11-28 13:06

    For us its not related with code, appservice redeploy and then restart needs to be done

    0 讨论(0)
  • 2020-11-28 13:08

    I was able to solve this issue by removing forwardWindowsAuthToken from the web.config file under wwwroot.

    1. Navigate to src/ProjectName/wwwroot
    2. Open the web.config
    3. In the httpPlatformremove the forwardWindowsAuthToken="true/false" property

    Redeploy and mine worked fine.

    See here https://github.com/aspnet/Hosting/issues/364 for plenty of discussion

    0 讨论(0)
  • 2020-11-28 13:10

    I got the same error. After searching some solutions, I changed the code, replacing the async method calls with non-async ones, regarding the notes that thread pool might exceed the allowed capacity. This did not work. Then I increased the request timeout in web.config to 20 minutes and it is resolved.

    Add the string below in web.config file.

    requestTimeout="00:20:00"
    

    as

    <aspNetCore processPath="dotnet" arguments=".\API.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" requestTimeout="00:20:00" />
    
    0 讨论(0)
  • 2020-11-28 13:11

    Today we had the same problem. In our case it was caused by a failing Debug.Assert(...).

    0 讨论(0)
提交回复
热议问题