如何修复错误"ANCM进程内处理程序加载失败"? [英] How to fix error "ANCM In-Process Handler Load Failure"?
问题描述
我正在Windows Server 2016 Standard上的IIS中设置第一个站点.
这是一个NET Core 2.2
应用程序.我无法显示该网站.
I'm setting up the first site in IIS on Windows Server 2016 Standard.
This is a NET Core 2.2
application. I cannot get the site to show.
我收到此错误:
HTTP错误500.0-ANCM进程内处理程序加载失败
HTTP Error 500.0 - ANCM In-Process Handler Load Failure
我可以更改些什么来清除此错误并显示我的网站?
What can I change to clear this error and get my site to display?
我的应用程序是dll
.
我通过命令提示符在服务器上测试了我的应用程序
I tested my application on the server through the Command Prompt with
dotnet ./MyApp.dll
它显示在浏览器中,但仅显示在服务器本身上并带有(localhost:5001/
).
it displays in the browser but only on the server itself with (localhost:5001/
).
使用此方法,无法从任何其他服务器访问该站点. 当我通过IIS设置站点时,在服务器上以及尝试访问该站点的服务器上都出现了In-Process错误.
Using this method the site cannot be accessed from any other server. When I set up the site through IIS, I get the In-Process error both on the server and from servers attempting to access the site.
起初,我收到Out-Process错误.我读过的东西说要将此内容(hostingModel ="inprocess")添加到我的web.config
所以我做到了,但是现在我收到了处理中错误.
At first I was receiving the Out-Process error. Something I read said to add this (hostingModel="inprocess") to my web.config
so I did but now I receive the In-Process error.
该网站安装在我的开发服务器上后可以正常工作.
The site works fine when installed on my development server.
事件查看器针对"IIS AspNetCore模块V2"显示此错误:
The Event Viewer shows this error for "IIS AspNetCore Module V2":
无法启动应用程序'/LM/W3SVC/2/ROOT',错误代码'0x8000ffff'.
Failed to start application '/LM/W3SVC/2/ROOT', ErrorCode '0x8000ffff'.
这是我的web.config
:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<customErrors mode="RemoteOnly"></customErrors>
<identity impersonate="false" password="****" userName="****" />
</system.web>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\MyApp.dll" stdoutLogEnabled="false" hostingModel="inprocess" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false">
<environmentVariables />
</aspNetCore>
</system.webServer>
</configuration>
推荐答案
.Net core 2.2中存在相同的问题.当我更换
I had the same issue in .Net core 2.2. When I replace
web.config:
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
到
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
然后正常工作.
这篇关于如何修复错误"ANCM进程内处理程序加载失败"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!