HTTP 错误 502.5 - 进程失败 asp.net core 2.0 [英] HTTP Error 502.5 - Process Failure asp.net core 2.0

查看:25
本文介绍了HTTP 错误 502.5 - 进程失败 asp.net core 2.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了我的 Web 应用程序并使用 asp.net core 1.1 将其发布到 azure,它运行良好,直到我将我的 Web 应用程序升级到 Core 2.0 最终版本,现在该应用程序在本地运行,但是当我将它部署到 Azure It给我这个问题.

I already developed my web app and published it to azure with asp.net core 1.1 and it was working fine until I upgraded my web application to Core 2.0 final release and now the app working locally but when I deploy it to Azure It gives me this issue .

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
  </ItemGroup>

我只是用这行代码更新 .csproj 文件

I just update .csproj file with this line of code

申请进程启动失败申请进程已启动但随后停止 应用程序进程已启动但未能监听配置的端口

HTTP Error 502.5 - Process Failure

Common causes of this issue:

The application process failed to start The application process started but then stopped The application process started but failed to listen on the configured port

检查系统事件日志中的错误消息应用程序进程的标准输出消息 将调试器附加到申请流程和检查

Check the system event log for error messages Enable logging the application process' stdout messages Attach a debugger to the application process and inspect

推荐答案

稍微搜索一下 对我有用.

With a bit of searching this worked for me.

基本上从 Azure 门户上的控制台清除 wwwroot 文件夹.确保您获得最顶层的 wwwroot 文件夹(由于某种原因,我有一个子 wwwroot 文件夹.)

Essentially clean out the wwwroot folder from a console on your Azure Portal. Make sure you get the top most wwwroot folder (I had a sub wwwroot folder for some reason.)

RD wwwroot/S/D

应该做的伎俩.然后只需重新发布您的网站.似乎发布过程不会删除部署文件夹中已存在的任何内容.所以你有 1.1 .dll 和 2.0 .dll.

Should do the trick. Then just republish your site. It would appear that the publish process does NOT delete anything that already exists within the deploy folder. So you have 1.1 .dlls and 2.0 .dlls.

希望对你有用.

这篇关于HTTP 错误 502.5 - 进程失败 asp.net core 2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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