Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Core web app HTTP Error 502.5 Process Failure on Visual Studio 15.2

If you create a new ASP.NET Core project in Visual Studio 15.2 and publish it to an Azure App Service, your website says "HTTP Error 502.5 - Process Failure". The same error occurs if you update an existing website.

If you try to run the website manually from the Kudu debug console, you get the error message that ASP.NET Core 1.1.2 isn't installed. This error occurs even though the project has a TargetFramework of netcoreapp1.1 (nothing about 1.1.2).

The exact same new or existing project published just fine a day ago with Visual Studio 15.1. Some subtle change to VS seems to have broken the ability to publish successfully.

How can I fix or work around this problem?

like image 281
Edward Brey Avatar asked May 10 '17 21:05

Edward Brey


1 Answers

My csproj file property TargetFramework contains the value netcoreapp1.0. I have changed it with netcoreapp1.1.1 and all seems going ok for now.

<PropertyGroup> <TargetFramework>netcoreapp1.1.1</TargetFramework> </PropertyGroup>

like image 61
Andrew Orlov Avatar answered Nov 13 '22 16:11

Andrew Orlov