Visual Studio 15.2上的ASP.NET Core Web应用HTTP错误502.5进程失败 [英] ASP.NET Core web app HTTP Error 502.5 Process Failure on Visual Studio 15.2

查看:121
本文介绍了Visual Studio 15.2上的ASP.NET Core Web应用HTTP错误502.5进程失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果在Visual Studio 15.2中创建一个新的ASP.NET Core项目并将其发布到Azure应用服务,则您的网站会显示"HTTP错误502.5-进程失败".如果更新现有网站,则会发生相同的错误.

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.

如果尝试从Kudu调试控制台手动运行网站,则会收到错误消息,提示未安装ASP.NET Core 1.1.2.即使项目的netframeapp1.1的TargetFramework(大约为1.1.2),也会发生此错误.

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

一天前用Visual Studio 15.1发布的完全相同的新项目或现有项目. VS的一些细微变化似乎破坏了成功发布的能力.

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?

推荐答案

我的csproj文件属性TargetFramework包含值netcoreapp1.0.我已经用netcoreapp1.1.1进行了更改,目前看来一切正常.

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>

这篇关于Visual Studio 15.2上的ASP.NET Core Web应用HTTP错误502.5进程失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆