Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Module DLL C:\Program Files (x86)\IIS\Asp.Net Core Module\V2\aspnetcorev2.dll failed to load. The data is the error. #24368

Closed
HakamFostok opened this issue Jul 28, 2020 · 4 comments
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. Status: Resolved

Comments

@HakamFostok
Copy link

HakamFostok commented Jul 28, 2020

Describe the bug

Here is an excellent description of the error
100% percent exactly to what I faced: (https://stackoverflow.com/questions/54176640/the-module-aspnetcorev2-dll-failed-to-load)

I will copy the StackOverflow question here if you do not want to go there and read the question and its solution


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?


Simply the problem is that Microsoft Visual C++ 2015 Redistributable does not exist on the server.

When I installed it, everything worked like charm.

I spent 1 month to discover this problem, I just wanted to suggest the following :
when installing ASP.NET CORE Hosting bundle 3.1.x why the not giving an error which says Hosting bundle can not be downloaded because Microsoft Visual C++ 2015 Redistributable is not exists
If I faced this imaginary error message when I was installing ASP.NET CORE Hosting Bundle, I would immediately install Microsoft Visual C++ 2015 Redistributable and I would save one month of efforts for me and for my become-angry client

I really like Microsoft, I am working with its technologies from about 10 years, but because of some errors like these I am really going crazy, I started to consider to move to node.js even I am a loyal Microsoft client.

Please, I am suggesting one of two things:

  1. Prevent ASP.NET CORE Hosting Bundle from installing if the Microsoft Visual C++ 2015 Redistributable dependency does not exist, Of course with a very very clear error message.

  2. Install Microsoft Visual C++ 2015 Redistributable automatically (if not already exists) when Installing ASP.NET CORE Hosting Bundle (this would be much better)

Here is another question on StackOverflow which describes the same problem
https://stackoverflow.com/questions/54368738/failed-to-load-aspnetcorev2-dll-hosting-asp-net-core-2-2-on-iis7

@BrennanConroy
Copy link
Member

Recently I tried installing ASP.NET Core/.NET Core: Runtime & Hosting Bundle version 2.2

2.2 is out of support. Starting in 3.1 this should no longer be an issue as libc is statically linked now.

@BrennanConroy BrennanConroy added the ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. label Jul 29, 2020
@ghost ghost added the Status: Resolved label Jul 29, 2020
@ghost
Copy link

ghost commented Jul 30, 2020

This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes.

See our Issue Management Policies for more information.

@ghost ghost closed this as completed Jul 30, 2020
@HakamFostok
Copy link
Author

I faced this problem with .NET Core 3.1.5 Hosting Bundle

Not with .NET Core 2.2

@HakamFostok
Copy link
Author

HakamFostok commented Jul 31, 2020

I can reproduce the problem because it is related to the machine not to the code
but here what you can use to reproduce the problem

  1. .NET Core Hosting Bundle 3.1.5
  2. IIS 7.5
  3. any machine without Microsoft Visual C++ 2015 Redistributable or above (to be specific in my case it was Windows Server 2012 R2)

Try it yourself, the problem does not solved with .NET Core 3.1 as you mentioned

@ghost ghost locked as resolved and limited conversation to collaborators Aug 30, 2020
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Aug 24, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. Status: Resolved
Projects
None yet
Development

No branches or pull requests

4 participants