【问题标题】:HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure Application XbapHTTP 错误 502.5 - ANCM 进程外启动失败应用程序 Xbap
【发布时间】:2020-11-16 16:04:52
【问题描述】:

最近经常遇到这个问题,但不明白是什么原因。

使用 IIS,我的网站带有我的 api,当我打电话给他们时,我得到了答案,但我在我的网站上添加了一个应用程序,这个应用程序向我发送了这个错误。

我的 api 在:C:\inetpub\wwroot\V4_1\

Xbap 应用程序位于:C:\Content\AppliWindows\Xbap\

我使用相同文件的一些服务器没有这个问题。

Web.config:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
   <system.webServer>
    <handlers>
      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
    </handlers>
    <aspNetCore processPath=".\Spec.Locbus.V4.Services.FrontEnd.exe" arguments="" requestTimeout="00:20:00" stdoutLogEnabled="false" forwardWindowsAuthToken="false" stdoutLogFile=".\logs\stdout">
      <environmentVariables />
    </aspNetCore>
  </system.webServer>
</configuration>
<!--ProjectGuid: 821a3cf1-7c3b-4e36-8868-69fd8b417331-->

在 Windows 事件日志中,我收到此错误,但没有提供更多信息:

具有物理根目录的应用程序“/LM/W3SVC/2/ROOT/content” 'C:\content' 无法使用命令行启动进程 '.\Spec.Locbus.V4.Services.FrontEnd.exe' 多次重试。 无法绑定到端口“7993”。捕获的前 30KB 字符 多次重试的 stdout 和 stderr 日志:

我知道当我尝试调用我的 api 并且我没有安装 net.core2.2.8 时遇到了同样的错误,但我正确安装了它并且我的 api 工作正常。

我所在的服务器正在运行 Windows2019。

除了 2.2.8 在生命周期结束时,Asp.NET 诊断似乎还不错:

System Time: 17/11/2020 15:57:29
Processor Architecture: AMD64
OS: Microsoft Windows NT 10.0.17763.0

Server Type: IIS
Scan 32 installed module(s).
ASP.NET Core module version 2 is installed for .NET Core 2.2 and above: C:\Program Files\IIS\Asp.Net Core Module\V2\aspnetcorev2.dll (13.1.20295.10).

Scan 45 registered handler(s).
Found a valid ASP.NET Core handler as { Name: aspNetCore, Path: *, State: Enabled, Module: AspNetCoreModuleV2, Entry Type: Local }.
Visual C++ runtime is detected (expected: 14.0, detected: 14.28.29325.2 built by: vcwrkspc): C:\Windows\system32\msvcp140.dll.
The application pool 'LocbusV4' is used.
Pool identity is IIS AppPool\LocbusV4
Please ensure pool identity has read access to the content folder C:\inetpub\wwwroot\V4_1.
Pool bitness is 64 bit
Scan aspNetCore section.
    "processPath": .\Spec.Locbus.V4.Services.FrontEnd.exe.
    "arguments": .
    "hostingModel": .
"runtimeTarget": .NETCoreApp,Version=v2.2/win-x64.
Runtime is Microsoft.AspNetCore.All/2.2.8.
.NET Core version 2.2.8 is end-of-life. Please upgrade to a supported version.
Runtime 2.2.8 requires ASP.NET Core module version 12.2.19109.5. Installed version 13.1.20295.10 might not be compatible.
Please refer to pages such as https://dotnet.microsoft.com/download/dotnet-core/3.1 to verify that ASP.NET Core version 13.1.20295.10 matches the runtime of the web app.

有没有人遇到过这个问题并有解决方案?

提前谢谢你。

【问题讨论】:

  • 运行报告以显示更多详细信息,docs.jexusmanager.com/tutorials/ancm-diagnostics.html
  • 更多信息可以查看asp.net core的日志。
  • @BruceZhang 嗨,我将您告诉我的内容放在 web.config 中,当我调用 api 时出现此错误:HTTP Error 500.0 - ANCM In-Process Handler Load失败除了当我把同样的东西放在另一台运行相同交付物的服务器的web.config中时,我得到了同样的错误,所以我认为它没有给我一个线索.
  • 您是否在 IIS 中正确安装了 AspNetCoreModuleV2?在 asp.net core 2.2 中,带有 IIS 的默认服务器/托管模式称为 IIS InProcess 托管。 web.config 指向一个名为 AspNetCoreModuleV2 的新模块,这是进程内托管所必需的。您可以从这里获取模块:dotnet.microsoft.com/download/dotnet-core/thank-you/…
  • @BruceZhang 是的,该模块存在于 web.config 中。我在帖子中添加了屏幕截图。在安装时,我按照您的链接进行安装,但除了安装 .NetCore5 外没有任何改变,但我已经通过安装 Asp.Net core2.2.8 下载了模块。

标签: asp.net-core iis .net-core http-error out-of-process


【解决方案1】:

我终于成功地创建了第二个站点,方法是在这个站点中创建子应用程序,并通过 URL 重写将应用程序的调用从站点 1 重定向到应用程序的站点。

【讨论】:

    猜你喜欢
    • 2020-02-02
    • 1970-01-01
    • 1970-01-01
    • 2020-07-29
    • 1970-01-01
    • 2019-07-12
    • 2019-05-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多