.netcore 2.1.4的程序部署到IIS后报以下错误:

=======================================================

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

解决方案,选中应用程序池-->高级设置-->加载用户配置文件设为true.

问题原因:IIS默认是不读取我们.netcore的配置文件appsettings.json,如下图命令执行donet path/application.dll时会出现错误提示:

找到对应的行发现是因为找不到对应的配置导致Object reference not set to an instance of an object.

修改应用程序池的设置后,问题解决。

最新文章

  1. bzoj1927最小费用最大流
  2. 服务器未能识别 HTTP 标头 SOAPAction 的值
  3. fir.im weekly - 「 持续集成 」实践教程合集
  4. C#日期格式转换
  5. reflect2015破解
  6. npm安装完bower,使用时提示bower不是内部或外部命令
  7. Python基础:新式类的属性访问
  8. HTML系列(HTMl+CSS+JavaScript+Jquery)--un
  9. 修改数据库表的schema,(表的[dbo.]前缀)
  10. IEF could not decode Chinese character in IE history well
  11. Truncating HTML attribute value in SharePoint DataFormWebPart
  12. 怎样创建TWaver 3D的轮廓选中效果
  13. ABC: Always Be Coding
  14. get和post方式请求数据,jsonp
  15. Mybatis传参方式
  16. 201521123071 《JAVA程序设计》第四周学习总结
  17. Java 得到泛型中得到T.class
  18. Ubuntu16.04升级 Ubuntu18.04
  19. yum和rpm的区别
  20. MySQL的并行复制多线程复制MTS(Multi-Threaded Slaves)

热门文章

  1. 初步了解URL
  2. android 开发学习2
  3. python脚本文件引用
  4. 1834 [ZJOI2010]network 网络扩容
  5. web应用中并发控制的实现,各种锁的集合
  6. DispatcherServlet (1)
  7. mini2440 裸机程序下载到 sdram 不能运行。
  8. C++ CreateInstance("ADODB.Connection");创建接口失败的解决方法
  9. 题解P4201: [NOI2008]设计路线
  10. nginx如何一个域名多个端口?