【发布时间】:2017-03-15 01:44:29
【问题描述】:
我使用的是 Visual Studio .NET 4.6,Robomongo 连接到我的数据库没有问题
我对@987654322@ 的导入
using MongoDB.Driver;
using MongoDB.Driver.Builders;
using MongoDB.Bson;
正在执行的代码:
MongoClient client = new MongoClient("mongodb://localhost");
MongoServer server = client.GetServer();
MongoDatabase mongoDatabase = server.GetDatabase("GameCollection");
完整的错误信息:
“System.IO.FileNotFoundException”类型的未处理异常 发生在 mscorlib.dll 中
附加信息:无法加载文件或程序集 'System.Runtime.InteropServices.RuntimeInformation,版本=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 或其之一 依赖关系。系统找不到指定的文件。
【问题讨论】: