Failed to load aspnetcorev2.dll hosting ASP.NET Core 2.2 on IIS7

前端 未结 3 1710
猫巷女王i
猫巷女王i 2021-02-13 20:30

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

相关标签:
3条回答
  • 2021-02-13 20:49

    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 :

    1. Uninstall Runtime & Hosting Bundle and Microsoft Visual C++ 2015 Redistributable

    2. Run the following command to check and repair file system :

      sfc /scannow

    3. Run the following command to check the Windows image for any corruption and to perform a repair automatically :

      dism /online /cleanup-image /restorehealth

    4. Run Windows Update and install all updates (this can take a while)

    5. Install Runtime & Hosting Bundle from https://dotnet.microsoft.com/download/dotnet-core/2.2

    0 讨论(0)
  • 2021-02-13 20:53

    After a lot of digging it turned out that the installer for the hosting bundle failed to download Microsoft Visual C++ 2015 Redistributable. That is why all websites stopped working. I installed it manually and resintalled the hosting bundle and everything worked.

    0 讨论(0)
  • 2021-02-13 20:56

    download Microsoft Visual C++ 2015 Redistributable here

    https://www.microsoft.com/en-us/download/confirmation.aspx?id=52685

    and reinstall hosting bundle.

    0 讨论(0)
提交回复
热议问题