self-contained asp.net core web api is getting:- Failed to initialize CoreCLR, HRESULT: 0x80131500 on Ubuntu 16.10-x64 -


i have self contained asp.net core website, able run fine in windows 10, when publishing ubuntu.16.10-x64, , running in ubuntu 16.10 x64 desktop version getting a:

failed initialize coreclr, hresult: 0x80131500

i have run updates , upgrades of os: (sudo apt-get update, sudo apt-get upgrade)

i executing starting command sudo.

the file has run permissions ( -rwxrwx--x )

targetframework netcoreapp1.1.

libicu-dev newest version (55.1-7ubuntu0.2).

how go troubleshooting error?

update 28/07/17

while seems there several related issues can cause (most seem dependency related), users have reported ubuntu 16.1 following instructions on get started page has resolved error.

several other fixes various other scenarios suggested on this thread.

in addition, per https://github.com/dotnet/coreclr/issues/11417 - instances may due existing bug in coreclr 1.1 - not sound fixed in version. migrating version 2.0 suggested workaround in case.

original answer:

to diagnosing issue, can enable detailed startup errors specifying detailed error logging .usesetting("detailederrors", "true") , .capturestartuperrors(true) per following example:

public static void main(string[] args) {   var host = new webhostbuilder()       .usekestrel()       .usecontentroot(directory.getcurrentdirectory())       .usesetting("detailederrors", "true")       .useiisintegration()       .usestartup<startup>()       .capturestartuperrors(true)       .build();    host.run(); } 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -