IIS:处理程序"aspNetCore";具有错误的模块"AspNetCoreModuleV2";在其模块列表中 [英] IIS: Handler "aspNetCore" has a bad module "AspNetCoreModuleV2" in its module list
问题描述
我使用了.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平台托管
通过选择扩展,然后安装 .NET Core运行时,安装.NET Core运行时扩展.
Install the .NET Core runtime extension by selecting Extensions and then installing .NET Core Runtime.
这篇关于IIS:处理程序"aspNetCore";具有错误的模块"AspNetCoreModuleV2";在其模块列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!