经验首页 前端设计 程序设计 Java相关 移动开发 数据库/运维 软件/图像 大数据/云计算 其他经验
当前位置:技术经验 » 程序设计 » ASP.net » 查看文章
.net core部署到linux可能碰到的问题
来源:cnblogs  作者:吴旭标  时间:2018/11/9 11:22:55  对本文有异议
  1. 缺少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

原文链接:https://www.cnblogs.com/wuxubiao/p/9929569.html

 友情链接:直通硅谷  点职佳  北美留学生论坛

本站QQ群:前端 618073944 | Java 606181507 | Python 626812652 | C/C++ 612253063 | 微信 634508462 | 苹果 692586424 | C#/.net 182808419 | PHP 305140648 | 运维 608723728

W3xue 的所有内容仅供测试,对任何法律问题及风险不承担任何责任。通过使用本站内容随之而来的风险与本站无关。
关于我们  |  意见建议  |  捐助我们  |  报错有奖  |  广告合作、友情链接(目前9元/月)请联系QQ:27243702 沸活量
皖ICP备17017327号-2 皖公网安备34020702000426号