Docker on Windows Error "A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found"


Question: How do you solve Docker on Windows Error when you are trying to run AspNet Application on Windows? The error says "A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found".


Login to See the Rest of the Answer

Answer: The error is due to the Published Application targetting Windows 64 or 32 bit Hosting Enviroment but your Docker Engine is running Docker Containers in a Linux Enviroment. This is will not work, you need to make sure that your Application you have just published is targeting Linux Environment or change the Docker Engine to run Docker Containers in a Windows Enviroment (Platform.).

 

I hope this helps :)







For peering opportunity Autonomouse System Number: AS401345 Custom Software Development at ErnesTech Email AddressContact: [email protected]