.NET Core 3.0和IIS:HTTP错误500.30-ANCM进程内启动失败:无法加载coreclr [英] .NET Core 3.0 and IIS: HTTP Error 500.30 - ANCM In-Process Start Failure: failed to load coreclr

查看:4360
本文介绍了.NET Core 3.0和IIS:HTTP错误500.30-ANCM进程内启动失败:无法加载coreclr的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序在开发工作站上的IIS Express中运行良好,但是在将其部署到IIS时遇到问题.浏览到应用程序时收到以下错误:

My application runs fine within IIS Express on my development workstation, but I am having trouble deploying it to IIS. I receive the following error when I browse to the application:

HTTP错误500.30-ANCM进程内启动失败

HTTP Error 500.30 - ANCM In-Process Start Failure

Windows事件日志中没有太多内容:

There's not much in the Windows Event Log:

Application '/LM/W3SVC/2/ROOT' with physical root 'c:\inetpub\cashflow\' failed to load coreclr. Exception message:
Error occured when initializing inprocess application, Return code: 0x80008083

据我所知,从命令行调用时,应用程序运行良好:

As far as I can see, the application runs fine when invoked from the command line:

这是我在失败的请求跟踪中看到的内容:(我为什么将文件标识为F:...有点神秘,这台机器上的Tehre不是F:\驱动器!)

Here's what I see in the failed request trace: (I'm a bit mystified as to why files are identified as F:... Tehre is no F:\ drive on this machine!)

对不起,我无法提供完整的跟踪XML,因为它超过100,000个字符.如果您想了解一些特定的信息,请告诉我,我将尝试提供相关的摘要.感谢您提供的任何建议!

Sorry, I am unable to provide the full trace XML as it exceeds 100,000 characters. If there is somethign specific you'd like to see let me know and I'll try to provide the relevant snippet. Thanks for any advice which you can provide!

推荐答案

我将Web.config中的规范更改为进程用尽.最初,该规范是针对InProcess的,如下所示:

I changed the specification in Web.config to run out of process. Originally the specification was for InProcess as follows:

  <aspNetCore processPath="dotnet" arguments=".\Cashflow.dll" stdoutLogEnabled="false" hostingModel="InProcess" stdoutLogFile=".\logs\stdout">

我将其更改为OutOfProcess:

I changed this to OutOfProcess:

  <aspNetCore processPath="dotnet" arguments=".\Cashflow.dll" stdoutLogEnabled="false" hostingModel="OutOfProcess" stdoutLogFile=".\logs\stdout">

和宾果!该应用程序将按预期运行.

and Bingo! The application runs as expected.

任何人都可以解释原因吗?

Can anyone explain why?

这篇关于.NET Core 3.0和IIS:HTTP错误500.30-ANCM进程内启动失败:无法加载coreclr的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆