I deployed the default ASP.NET Core application which comes from the project template. Some the website is running fine, but at some times i am getting the below error message
HTTP Error 502.3 - Bad Gateway The specified CGI application encountered an error and the server terminated the process.
HTTP Error 502.3 - Bad Gateway The specified CGI application encountered an error and the server terminated the process. Most likely causes: The CGI application did not return a valid set of HTTP errors. A server acting as a proxy or gateway was unable to process the request due to an error in a parent gateway. Things you can try: Use DebugDiag to troubleshoot the CGI application. Determine if a proxy or gateway is responsible for this error. Detailed Error Information: Module AspNetCoreModule Notification ExecuteRequestHandler Handler aspNetCore Error Code 0x80072efe
<system.webServer><handlers><add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/></handlers><aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false"/></system.webServer></configuration>
My web.config file was above