Asp.netcore 托管模型- 进程内托管和进程外托管(inprocess out OutOfProcess)

.net core 3.1 项目部署到生产环境(windows server2012 R2),访问报错

HTTP Error 500.30 - ANCM In-Process Start Failure

window logs:

Application '/LM/W3SVC/5/ROOT' with physical root 'D:\XXXX\' failed to load coreclr. Exception message:
CLR worker thread exited prematurely

Application '/LM/W3SVC/5/ROOT' with physical root 'D:\XXXX\' hit unexpected managed exception, exception code = '0xe0434352'. Please check the stderr logs for more information.

 

在web.config 将hostingModel="InProcess" 改为 hostingModel="OutOfProcess"

上一篇:数字孪生笔记(一)


下一篇:ssh配置config文件,实现vscode免密登陆