IIS:处理程序“aspNetCore"有一个坏模块“AspNetCoreModuleV2";在其模块列表中 [英] IIS: Handler "aspNetCore" has a bad module "AspNetCoreModuleV2" in its module list
问题描述
我使用 angular .net core 2.2 模板来构建应用程序.在本地主机工作正常,当我托管到 IIS 时,我收到此错误.我使用 IIS 10 来托管应用程序.
I used angular .net core 2.2 template to build an application. In localhost working fine, When I host to IIS I'm getting this error. I'm using IIS 10 to host the application.
错误,
HTTP 错误 500.21 - 内部服务器错误处理程序aspNetCore"有一个坏模块AspNetCoreModuleV2";在其模块列表中
HTTP Error 500.21 - Internal Server Error Handler "aspNetCore" has a bad module "AspNetCoreModuleV2" in its module list
推荐答案
Windows IIS
解决方案:安装托管包.
原因:虽然 SDK 通常包含运行时,但是 SDK 安装程序似乎没有在服务器上正确注册运行时.
Reason: Although the SDK normally contains the runtime, however, it seems the SDK installer is not registering the runtime correctly on the server.
解决方法(不推荐):
在 web.config 中将 AspNetCoreModuleV2
更改为 AspNetCoreModule
.
Change AspNetCoreModuleV2
to AspNetCoreModule
inside web.config.
Azure 平台托管
通过选择 Extensions 然后安装 .NET Core Runtime 来安装 .NET Core 运行时扩展.
Install the .NET Core runtime extension by selecting Extensions and then installing .NET Core Runtime.
这篇关于IIS:处理程序“aspNetCore"有一个坏模块“AspNetCoreModuleV2";在其模块列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!