当前位置: 移动技术网 > IT编程>开发语言>.net > .net core部署到linux可能碰到的问题

.net core部署到linux可能碰到的问题

2018年11月09日  | 移动技术网IT编程  | 我要评论

britax安全座椅,小宋当家主题曲,奇姬女仆

缺少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添加以下配置
<itemgroup>
<runtimehostconfigurationoption include="system.globalization.invariant" value="true" />
</itemgroup>

连接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").

解决方法请看以下连接

解决linux netcore https请求使用自签名证书忽略安全检查方法

centos curl ssl 替换 nss 为 openssl

 

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

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网