在新服务器上部署.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++的库 也一定要装上。  好多包可能依赖这个库。

 

posted @ 2021-07-23 10:59  sunshine静  阅读(117)  评论(0编辑  收藏  举报