-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Failed to initialize CoreCLR, HRESULT: 0x80004005 when starting on CentOS 7.3 #733
Comments
How are you running the app and what commands are you using to build it? Are you using |
Was using Visual Studio publish, now tried |
That error usually means one of the dependencies isn't there on linux. Did you yum install all the dependency packages? Sounds like you probably did because you said you were able to run the SDK on that Linux machine? |
Yes, I have installed all the dependencies. There is also another app (runtime version 1.1.0) running fine on the server. Just tried right now downgrading this app to 1.1.0, but it did not make a difference. Maybe there is some way to debug to find out what is causing the error? |
@gkhanna79 @steveharter isn't there a switch to enable verbose output that will help figure out what it's looking for? |
Do you have 1.1.2 installed on the linux machine or use 1.1.0? |
There is |
To capture verbose output: |
There are some skips like this:
I think, they're normal, considering that similar output is in the working app. The ending of the output:
On the working app, instead of the failure there is a line like this:
I can't see anything wrong... The installed packages in app:
|
From the output, it looks like it is finding the 1.1.2 directory. Have you tried Centos 7.1? I'm asking as this is what we're testing on. Did you try a simple "Hello World" assembly (no extra dependencies)? If this still fails, we can try debugging using gdb or I can try a local repro. |
Simple Console app which only prints out "Hello world", created and compiled using VS works fine, however, new WebAPI project fails with the same error. Tried creating new WebAPI project on the server, using
Maybe upgrading the project to netcore 2 preview would help, as it supports RHEL 7.3? After all, will have to do that sooner or later. Can't downgrade to Centos 7.1, as it's a production server for other projects. |
After upgradint to netcore 2.0 preview 2, it works, so I guess netcore 1.1.2 doesn't support Centos 7.3 and netcore 2.0 does. Thanks for the help. |
Latest Visual Studio (2017 version 15.2 (26430.14)),
Windows 10 x64
Server CentOS 7.3 x64
Netcore 1.1.2
Developing the app on Windows, it runs fine on Windows. When trying to run the published release build on Linux, it throws this error: Failed to initialize CoreCLR, HRESULT: 0x80004005.
Creation of a new app on Linux and running it works, but I want to build on Windows and host on Linux server.
Any ideas?
The text was updated successfully, but these errors were encountered: