I have created a .net core 3.1.0 app and deployed it in IIS. I have installed web server hosting bundle 3.1.16. In IIS modules, I can see AspNetCoreModuleV2 and web.config also aspnetcore module is AspNetCoreModuleV2 and hostingmodel is inprocess.
But the app is not running and it's showing 500.19 error.
If I install web server hosting bundle 1.0.16, it will resolve the problem. But as per my understanding, hosting bundle 1.x version is only needed for .net core 1.x apps. Could anyone please help me to understand this issue?
1 Answer
The issue was I was already installed 1.X hosting bundle and also installed 3.x hosting bundle. Then I uninstalled 1.x version. After that my app was not working. Then I uninstalled 3.x version and installed 3.x again. It resolved my problem.
1 Comment
r3mark
Thanks! Similar issue for me (NET 2.x/ANCM V1 -> NET 8/ANCM V2). After ensuring that the app is now using ANCM V2, it would not run anymore after uninstalling ANCM V1. However, "repairing" the NET 8 Hosting Bundle fixed the issue.
Microsoft .NET Core X - Windows Server Hostingcorrectly?