我正在托管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托管
发布评论