I am struggling with deploying an ASP.NET Core 2.2 site to Windows 7 SP1 IIS7.5.
The server has dotnet-hosting-2.2.1-win installed. Following are the Programs and Featur
I faced the same problem on a Windows Server 2012 R2. I tried to reinstall Microsoft Visual C++ 2015 Redistributable, but the error was still there. What fix the problem for me :
Uninstall Runtime & Hosting Bundle and Microsoft Visual C++ 2015 Redistributable
Run the following command to check and repair file system :
sfc /scannow
Run the following command to check the Windows image for any corruption and to perform a repair automatically :
dism /online /cleanup-image /restorehealth
Run Windows Update and install all updates (this can take a while)
Install Runtime & Hosting Bundle from https://dotnet.microsoft.com/download/dotnet-core/2.2