I just deployed a my converted (2.2 -> 3.1) .NET core ASP.NET MVC app to my shared hosting provider.
I published it from VS2019 to my file system to a private folder and then FTP'd it to the server.
But when I run it, it says:
HTTP Error 500.21 - Internal Server Error Handler "aspNetCore" has a bad module "AspNetCoreModuleV2" in its module list
I can see that the publishing wizard add's a web.config (tried removing that, but that didn't work) with this line:
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
So I guess that's where the AspNetCoreModuleV2
comes from.
Tried to remove the '2', tried with 'self-contained' and 'framework-dependant' deployment mode, and tried with x64 and x86, nothing worked.
Previous version was NET CORE 2.2, which worked.
I can't figure out whether the V2
has something to do with .NET CORE V2.x, or not.