IIS:处理程序"aspNetCore";具有错误的模块"AspNetCoreModuleV2";在其模块列表中

编程入门 行业动态 更新时间:2024-10-19 14:47:06
本文介绍了IIS:处理程序"aspNetCore";具有错误的模块"AspNetCoreModuleV2";在其模块列表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我使用了 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";在其模块列表中

本文发布于:2023-11-15 03:59:22,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1590944.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模块   错误   程序   列表中   IIS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!