aspnet / aspnet-docker

[Archived] ASP.NET Core Docker images for 1.x. Go to https://github.com/dotnet/dotnet-docker for 2.1 and up.
https://asp.net
719 stars 171 forks source link

The library 'libhostpolicy.so' required to execute the application was not found #301

Closed shirhatti closed 7 years ago

shirhatti commented 7 years ago

From @RehanSaeed on September 15, 2017 12:8

I'm not certain where to post this issue. I get the following error when running one of two docker containers using the ASP.NET Core 2.0 linux image:

A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/app'.

The container runs fine when being run using Visual Studio's Docker Support project. It only throws the above error when running on Docker for AWS which uses Moby linux for the host OS.

I get no further information than that unfortunately. I'm not sure how to debug it further either. Looking online, I've seen people mention that I need a runtimeconfig.template.json file which already I have.

Copied from original issue: Microsoft/aspnet-docker#52

natemcmaster commented 7 years ago

@RehanSaeed can you provide repro steps? See this template for a list of info we typically need to help you diagnose issues.

RehanSaeed commented 7 years ago

I'm not certain what caused it but it seems to have gone away. It's probably because I had a case mismatch of appSettings.json instead of appsettings.json which meant that the file was not being loaded. Terrible error though.

RehanSaeed commented 7 years ago

Feel free to close this issue.

natemcmaster commented 7 years ago

Ok. Feel free to reopen if you find out what is wrong.

MrM40 commented 6 years ago

My solution was include the YourApplication.runtimeconfig.json in your installation package

alexandrupascanu commented 6 years ago

Hello, I 've included runtime and deps files into my Asp.net core 1.1 application release but i still have the :"The library 'libhostpolicy.so' required to execute the application was not found in '/app'.", I 'm blocked. Can anyone help me out with this one? Thank you!