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

查看:16
本文介绍了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 的错误消息.即使项目的 TargetFramework 为 netcoreapp1.1(与 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天全站免登陆