Skip to content
This repository was archived by the owner on Nov 1, 2018. It is now read-only.
This repository was archived by the owner on Nov 1, 2018. It is now read-only.

HTTP Error 502.5 on Azure Web App, even with PublishWithAspNetCoreTargetManifest set to false #479

Closed
@sebastianbk

Description

@sebastianbk

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions