• Register
0 votes

Problem :

I am trying to host the asp.net 5 application on the azure, the code is complied for the beta8, my application runs fine on the local environment but when i publish the code on the azure site. I am facing a common error as follows:

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

6 5 3
7,540 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

You can try following options to fix your issue.

1.  Fixed the issue using UseIISIntegration() on the WebHostBuilder.as follows:

public static void Main(string[] args)
var whost = new WebHostBuilder()
UseIISIntegration() // Must for Azure.


2.    Fixed the issue by setting the requestTimeout within the web.config as follows:

<?xml version="1.0" encoding="utf-8"?>
  <location path="." inheritInChildApplications="false">
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
      <aspNetCore processPath=".\PROJECT.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" requestTimeout="00:30:00"/>

3.    Fixed the issue by following the below steps.

Firstly my application was .NET CORE 2.2 and I was trying to deploy it in the Azure web app.

I just Right Clicked on the project and clicked on the publish button.

After that Selected the publish profile which I had downloaded from Azure.

Next changed the deployment mode under the Summary to Self-Contained.

Finally clicked on publish button and it worked. 

9 7 4
38,600 points

Related questions

0 votes
1 answer 6 views
Problem: I am facing a common error as follows: The specified cgi application encountered an error and the server terminated the process .
asked Mar 15 Wafa Abu Yousef 6.1k points
0 votes
1 answer 126 views
Problem: I am completely new to ASP .net core. I guess it is giving me the dependency injection error as shown below: InvalidOperationException: Unable to resolve service for type 'Spinit ... ) Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.DatabaseErrorPageMiddleware.Invoke(HttpContext httpContext) Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
asked Aug 17, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 40 views
Problem: I am naive to Asp.Net.I am having a weird looking problem where I am trying to open up my ASP.NET MVC application but I am receiving the below ASP.NET error page which says: Server Error in '/' Application. The resource cannot be found. Description: ... unknown reason to me it seems like it is actually searching for the .aspx file. Please guide me if you think I am missing something.
asked Aug 19, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 144 views
Problem : I have recently installed a website on my local machine using IIS 7 successfully. But when I tried to deploy it on the live server, I got a following error: "The page cannot be displayed because an internal server error has occurred" Nothing else. Using a same IIS 7 on live and also set to have the Detailed errors in Error Pages module, but still getting a same. What can be the reason?
asked Jan 28, 2020 jwilliam 3.9k points
1 vote
1 answer 561 views
Problem : We are now running the 32-bit Windows server 2008 with the IIS version of 7. We are trying to publish the asp.net 4.0 webapp but so far our attempts have failed and only yielded the few warnings in our serverlog without even the stopping our 4.0 application ... very badly after that we ran out of the ideas on what to do on our issue so any form of the input would be greatly appreciated.
asked Dec 30, 2019 alecxe 7.5k points
0 votes
1 answer 4 views
Problem: I am facing this serious problem, need solotion. Create web api in visual studio 2017.
asked Mar 24 PkGuy 13.1k points
0 votes
1 answer 5 views
Problem: Created a new template ASP.Net Core 3.1 MVC web app. When I attempt to debug it using IIS Express I get the following error in firefox: Error code: SSL_ERROR_UNSUPPORTED_VERSION
asked Mar 23 ummesalma 22.8k points
0 votes
1 answer 4 views
Problem: unable to start program visual studio 2017 .unable to start program visual studio 2017
asked Mar 22 Ifra 24.4k points
0 votes
1 answer 12 views
Problem: This request has been blocked; the content must be served over https.
asked Feb 15 Ethan ross 2.3k points
0 votes
1 answer 1 view
1 view
Problem: Please let me know any solution regarding this .. .net framework vs .net standard
asked 4 days ago Ifra 24.4k points