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

前端 未结 3 1707
猫巷女王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

提交回复
热议问题