netcore程序部署 ubuntu 16.0.4 报错 The type initializer for 'System.Net.Http.CurlHandler'的解决方案

   最近业务扩展需要把netcore程序部署到ubuntu 16.0.4上,因为代码里面用到了HttpClient 请求。

部署ubuntu后一直报错

参考地址:https://github.com/dotnet/corefx/issues/35838

当有人明确需要curlhttphandler时,解决方法是安装旧的libcurl3

apt install libcurl3

 

posted @ 2019-08-09 10:39  Rach  阅读(354)  评论(0编辑  收藏  举报