在新服务器上部署.net core 应用程序,需要注意什么

首先 是安装各种包 和运行库:

 如果是.net core 3.1的项目,也要把.net core 2的库安装完整,否则IIS上也会报错。

出现如下图这个错误还要安装 visual C++库。。

the type initializer for 'Sodium.SodiumCore' threw an exception.

 ---> System.DllNotFoundException: Unable to load DLL 'libsodium' or one of its dependencies: The specified module could not be found. (0x8007007E)

网上说需要把目录放入环境变量。。什么的。。因为已经加入环境变量还是不行,所以C++的库 也一定要装上。  好多包可能依赖这个库。

每天进步一点~~~ 如果你觉得本文对你有帮助,请点击“推荐”,如果想第一时间了解我的更新,请点击公告栏里的“+关注”,谢谢关注我的好友~!
原文地址:https://www.cnblogs.com/sunShineJing/p/15047896.html