ASP.NET CORE托管

编程入门 行业动态 更新时间:2024-10-20 00:34:07
本文介绍了ASP.NET CORE托管-错误内部服务器错误处理程序"aspNetCore";具有错误的模块"AspNetCoreModule";在其模块列表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在托管ASP.NET Core 2网站,并出现以下错误消息.

I'm hosting ASP.NET Core 2 site and getting below error message.

HTTP Error 500.21 - Internal Server Error Handler "aspNetCore" has a bad module "AspNetCoreModule" in its module list

我的应用程序正在使用nopCommerce 4.00,并且服务器端已经安装了ASP.NET Core组件.

My application is using nopCommerce 4.00 and server side already ASP.NET Core component is installed.

推荐答案

在此博客后面中的内容,介绍了如何将asp核心应用托管到IIS中. Visual Studio已在发布的输出文件夹中添加了以下web.config.

I was facing the same issue after following this blog on how to host an asp core app into IIS. Visual studio had added the following web.config in the published output folder.

然后我查看了IIS模块,以检查.NET核心托管捆绑包是否正确安装,并且看到了,

Then I looked into my IIS module to check if the .NET core hosting bundle was installed properly and I saw this,

所以我更改了web.config中的模块,

So I changed the module in web.config,

<handlers> <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" /> </handlers>

,此后它没有任何问题.

and it worked without any issues after that.

更多推荐

ASP.NET CORE托管

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

发布评论

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

>www.elefans.com

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