美文网首页
.Net Core 搭建Exceptionless 问题记录

.Net Core 搭建Exceptionless 问题记录

作者: Rinaloving | 来源:发表于2022-01-17 17:10 被阅读0次
[部署IIS HTTP 错误 500.19 - Internal Server Error 错误代码 0x8007000d]
安装 aspnetcore-runtime-2.2.8-win-x64.exe
        dotnet-hosting-2.2.8-win.exe
HTTP Error 502.5 - Process Failure 解决方案
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.

![image](https://img.haomeiwen.com/i14245154/7aa578746b2ae655.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

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

![image](https://img.haomeiwen.com/i14245154/132c2f51b7b6abf1.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

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

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

IIS 异常

运行命令行 

C:\windows\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers 。
其中的 handlers 是错误信息中红字显示的节点名称。
如果modules也被锁定,可以运行

C:\windows\system32\inetsrv\appcmd unlock config -section:system.webServer/modules


注意:cmd.exe要以管理员身份启动,在c:\windows\system32下找到cmd.exe,右键管理员启动,输入上面的命令即可。

相关文章

网友评论

      本文标题:.Net Core 搭建Exceptionless 问题记录

      本文链接:https://www.haomeiwen.com/subject/itgchrtx.html