HTTP Error 502.5 on Azure Web App, even with PublishWithAspNetCoreTargetManifest set to false #479
Description
I am running my ASP.NET Core app in Azure Web Apps and recently upgraded to version 2.0.3 due to some bugs in v2.0.0. However, now when I deploy to Azure, I get an error (HTTP 502.5), which other users have also encountered (e.g., #476).
I have tried setting the PublishWithAspNetCoreTargetManifest
property to false
, cleaned up the wwwroot
folder in my Azure Web App and then redeployed. Though, I am still getting the error. I tried creating an entirely new Web App too but I still get the same issue.
Here is a copy of my csproj
file: https://pastebin.com/1CfNKcRb
After upgrading to 2.0.3 I also had to add these lines:
<PropertyGroup>
<RuntimeFrameworkVersion>2.0.3</RuntimeFrameworkVersion>
</PropertyGroup>
<PropertyGroup>
<NoWarn>$(NoWarn);NU1605</NoWarn>
</PropertyGroup>
I do not know if adding these lines is affecting whatever PublishWithAspNetCoreTargetManifest=false
is doing.
I really hope that somebody has a fix for this, as it is extremely critical to our app and we currently feel pretty stuck. Downgrading to 2.0.0 is not an option for us, as we rely on some of the bug fixes in 2.0.3 (related to security and two-factor auth).