Hi, Thanks for using Microsoft Q&A Platform.
It looks like the issue is with hosting of your ASP.NET Core application or might be with the corrupted or installation issues with NET Core Hosting Bundle (for IIS) or Visual Studio. Here is the trouble shooting documentation related to ASP.NET Core IIS.
Try re- registering ASP.NET in IIS.
I hope this helps.
Regards,
Vasavi