处理程序“ aspNetCore”具有错误的模块“ AspNetCoreModuleV2”;在其模块列表中 [英] Handler "aspNetCore" has a bad module "AspNetCoreModuleV2" in its module list

查看:2321
本文介绍了处理程序“ aspNetCore”具有错误的模块“ AspNetCoreModuleV2”;在其模块列表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了.net core 2.2模板来构建应用程序。在localhost运行良好时,当我托管IIS时出现此错误。我使用IIS 10托管了应用程序。

I used angular .net core 2.2 template to build application.In localhost working fine,When i host to IIS Im getting this error.Im 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托管

安装 the托管包。请注意,SDK通常包含运行时,但是,似乎SDK安装程序未在服务器上正确注册运行时。

Install the hosting bundle. Note that the SDK normally contains the runtime, however, it seems the SDK installer is not registering the runtime correctly on the server.

解决方法(<不推荐使用):将 AspNetCoreModuleV2 更改为 web.config中的AspNetCoreModule

用于Azure托管

通过选择扩展,然后安装 .NET Core 2.2,安装.NET Core 2.2运行时扩展。运行时

这篇关于处理程序“ aspNetCore”具有错误的模块“ AspNetCoreModuleV2”;在其模块列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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