本文介绍了模块“aspnetcorev2.dll"加载失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我尝试安装 ASP.NET Core/.NET Core: Runtime &在运行 Windows Server 2008 R2 SP1 的机器上托管捆绑包版本 2.2.但是,安装 IIS 后停止工作并为其中托管的所有应用程序提供 503 服务不可用 错误.检查应用程序池后,我发现这些应用程序池刚刚关闭.

Recently I tried installing ASP.NET Core/.NET Core: Runtime & Hosting Bundle version 2.2 on a machine running Windows Server 2008 R2 SP1. However, after installing IIS stops working and gives 503 Service unavailable error for all applications hosted in it. After checking the application pools I see that the pools just shuts down.

在事件查看器中,我可以看到以下错误消息 -

In the event viewer I can see the following error message -

模块 DLL C:Program Files (x86)IISAsp.Net CoreModuleV2aspnetcorev2.dll 加载失败.数据是错误.

我尝试将池设置为 32/64 位,但错误是相同的.有没有其他人遇到过这个问题或对此有解决方案?

I have tried setting the pool to both 32/64 bits, but the error is the same. Did anybody else face this problem or have solution for this?

推荐答案

阅读以下文档后-

ASP 疑难解答IIS 上的 .NET Core

使用 ASP.NET Core 的 Azure 应用服务和 IIS 的常见错误参考

我开始知道 ASP.NET Core/.NET Core: Runtime &Hosting Bundle(最新版本)依赖于 Microsoft Visual C++ 2015 Redistributable.有问题的机器安装了早期版本的 vc++ redist.安装上述版本的可再发行组件(32 位和 64 位)后,一切又开始工作了.

I came to know that the ASP.NET Core/.NET Core: Runtime & Hosting Bundle (latest versions) depends on Microsoft Visual C++ 2015 Redistributable. The machine in question had earlier versions of vc++ redist installed. After installing the said version of redistributables (both 32 & 64 bit) everything started working again.

有趣的是ASP.NET Core/.NET Core:运行时&Hosting Bundle Version 2.2 安装程序在安装过程中没有抛出任何关于缺少 vc++ 2015 redist 的错误或警告.

Funny thing is the ASP.NET Core/.NET Core: Runtime & Hosting Bundle Version 2.2 installer didn't throw any errors or warnings during installation about the missing vc++ 2015 redist.

这篇关于模块“aspnetcorev2.dll"加载失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-27 15:55