HTTP错误502.5-asp.net core 2.0进程失败 [英] HTTP Error 502.5 - Process Failure 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错误502.5-进程失败
此问题的常见原因:
申请流程无法启动申请流程 已启动,但随后已停止应用程序进程已启动,但未能成功 在配置的端口上监听
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
推荐答案
稍作搜索基本上从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
应该做到这一点.然后,只需重新发布您的网站即可.似乎发布过程不会删除deploy文件夹中已经存在的任何内容.因此,您有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屋!