.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"