.netcore linux 多线程,.net core部署到linux可能碰到的问题

缺少icu库

以独立部署 (SCD)的方式发包,运行时报错

错误信息:FailFast: Couldn‘t find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.

解决方法有三

1、安装icu库,运行命令:yum install icu

2、项目配置文件.runtimeconfig.json,加入以下配置

{"runtimeOptions": {"configProperties": {"System.Globalization.Invariant": true}}}

3、项目csproj添加以下配置

连接SqlServer 2008R2数据库超时

.Net Core 在 Linux 下连接 SqlServer 需要 SqlServer2008 SP3或以上版本,或SqlServer2012,或SqlServer2014.

如果SqlServer2008低于SP3版本,会出现连接超时的问题。

解决办法:

官方下载SqlServer 2008 Sp3 补丁

https://download.microsoft.com/download/9/6/4/964BB4EC-FC28-4DA7-9295-7D4A8FDBE1A4/CHS/SQLServer2008R2SP3-KB2979597-x64-CHS.exe 64位

https://download.microsoft.com/download/9/6/4/964BB4EC-FC28-4DA7-9295-7D4A8FDBE1A4/CHS/SQLServer2008R2SP3-KB2979597-x86-CHS.exe 32位

httpclient访问https资源报错

错误信息:System.PlatformNotSupportedException: The handler does not support client authentication certificates with this combination of libcurl (7.29.0) and its SSL backend ("NSS/3.28.4").

解决方法请看以下连接

参考:https://blog.csdn.net/Free_Wind22/article/details/81061653

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值