Recently I tried installing ASP.NET Core/.NET Core: Runtime & Hosting Bundle version 2.2 on a machine running Windows Server 2008 R2 SP1. However, after installing IIS stops working and gives 503 Service unavailable
error for all applications hosted in it. After checking the application pools I see that the pools just shuts down.
In the event viewer I can see the following error message -
The Module DLL C:\Program Files (x86)\IIS\Asp.Net Core Module\V2\aspnetcorev2.dll failed to load. The data is the error.
I have tried setting the pool to both 32/64 bits, but the error is the same. Did anybody else face this problem or have solution for this?
After reading through the following documents -
Troubleshoot ASP.NET Core on IIS
and
Common errors reference for Azure App Service and IIS with ASP.NET Core
I came to know that the ASP.NET Core/.NET Core: Runtime & Hosting Bundle (latest versions) depends on Microsoft Visual C++ 2015 Redistributable. The machine in question had earlier versions of vc++ redist installed. After installing the said version of redistributables (both 32 & 64 bit) everything started working again.
Funny thing is the ASP.NET Core/.NET Core: Runtime & Hosting Bundle Version 2.2 installer didn't throw any errors or warnings during installation about the missing vc++ 2015 redist.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments