模块“ aspnetcorev2.dll”被设置为:加载失败 [英] The Module "aspnetcorev2.dll" failed to load

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

问题描述

最近,我尝试安装 ASP.NET Core / .NET Core:运行时&在运行 Windows Server 2008 R2 SP1 的计算机上托管2.2版本的捆绑包。但是,安装IIS后,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:\程序文件(x86)\IIS\Asp.Net Core
模块\V2\aspnetcorev2.dll加载失败。数据是错误。

The Module DLL C:\Program Files (x86)\IIS\Asp.Net Core Module\V2\aspnetcorev2.dll failed to load. The data is the error.

我尝试将池设置为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?

推荐答案

在阅读了以下文档之后-

After reading through the following documents -

对IIS上的ASP.NET Core进行故障排除

Azure的常见错误参考具有ASP.NET Core的App Service和IIS

我知道 ASP.NET Core / .NET Core:运行时&托管捆绑包(最新版本)取决于 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版本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”被设置为:加载失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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