我使用了 core 2.2模板来构建应用程序.在本地主机工作正常,当我托管到IIS时,出现此错误.我正在使用IIS 10托管应用程序.
I used angular 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";在其模块列表中
发布评论