简体   繁体   中英

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?

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>

I have updated my VS 2017 to 15.2 version, and then I published a new version of my project on the server, when I tried to acess it, I was getting the error 502.5, the solution to me was to install .NET Core 1.1.2 runtime on the server. Just did it and then the project was working. I don't know why this happened, but maybe it can help someone else. (I was not using azure)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM