分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 技术分享

记:ASP.NET Core开发时部署到IIS上出现HTTP Error 502.5 - Process Failure的解决方案

发布时间:2023-09-06 02:22责任编辑:赖小花关键词:.NET

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

Troubleshooting steps:

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

For more information visit: https://go.microsoft.com/fwlink/?LinkID=808681

鄙人建站比较喜欢一开始就部署到IIS上,用VS内置IISExpress就浑身难受。现在使用.net core发现部署到IIS上后报502错误,网上查到的文章都是介绍:

项目版本和SDK版本不一致导致的;
IIS程序池CLR版本设置无托管代码; 

程序池-高级-加载用户配置文件设为true;

等等,尝试一通没卵用。

后来发现一篇文章说要给VS安装开发时IIS支持:

https://docs.microsoft.com/zh-cn/aspnet/core/host-and-deploy/iis/development-time-iis-support?view=aspnetcore-2.1

于是按文章介绍的操作一波终于OK了,运行起来之后,web.config里面配置会自动更改,加了个IIS启动:

记:ASP.NET Core开发时部署到IIS上出现HTTP Error 502.5 - Process Failure的解决方案

原文地址:https://www.cnblogs.com/hpnet/p/9961160.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved