Getting a 502.5 error after CI deployment to azure app service.
When running dotnet {myproject}.dll on the debug console this is the error I get:
Found the issue. Let me start by adding a little more information. This was originally a .net-core-1.1 project that I updated to 2.0 following instructions provided by Microsoft. After upgrading, I had no issues at all running locally, but once I tried to publish my azure app service, i kept getting the IIS error. Last ditch effort was to create a new .net-core-2.0 project from scratch this morning and noticed that the new project file contained this:
I added that to my existing project file (the one upgraded from 1.1) and now the error is gone and issue resolved.