IIS 7 and Above
Hosting CSHTML on Windows Server
Re: Hosting CSHTML on Windows Server
May 28, 2019 07:54 AM|Able|LINK
According to your description, if you want to host your application on iis server , you should firstly publish it on iis, and it will show the default page in your application.Else you should add configuration like .net framework features for in iis service
to host asp.net application.
Here is the link ,I hope it could help you.