James
James

Reputation: 4374

Can't publish new Dotnet Core projects to Azure 502.5 error

I can publish dotnet core projects which I created a month ago, but newly created projects seem to be broken when visited after publishing. I can't publish new projects to either new or older webapps, however older projects can publish to either. So it seems the issue is with dotnet core and not azure...

Steps to reproduce:

The error I'm seeing in the azure Log Stream is:

HTTP Error 502.5 - 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.

Upvotes: 1

Views: 324

Answers (1)

James
James

Reputation: 4374

So it turned out all I had to do was publish with the Settings > File Publish Options > "Remove additional files at destination" option checked.

Upvotes: 2

Related Questions