A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/var/nop420/'.
Failed to run as a self-contained app. If this should be a framework-dependent app, specify the appropriate
framework in /var/nop420/Nop.Web.runtimeconfig.json.
OS: Ubuntu Server 18.04
Steps:
1. Install .NET Core SDK 2.2 on a Linux machine.
2. Download the published code from nopCommerce site and unzip it.
3. Goto the folder and run the command [dotnet Nop.Web.dll]
Resolution:
Currently the "Nop.Web.runtimeconfig.json" file doesn't contain framework detail
{
"runtimeOptions": {
"configProperties": {
"System.GC.Concurrent": false,
"System.GC.Server": false
}
}
}
It should be
{
"runtimeOptions": {
"tfm": "netcoreapp2.2",
"framework": {
"name": "Microsoft.AspNetCore.App",
"version": "2.2.0"
},
"configProperties": {
"System.GC.Concurrent": false,
"System.GC.Server": true
}
}
}
Perhaps need to add changes in the Web csproj file.