我正在使用Visual Studio .NET 4.6,Robomongo连接到我的数据库没有问题
我为MongoDB导入的
using MongoDB.Driver;
using MongoDB.Driver.Builders;
using MongoDB.Bson;
Run Code Online (Sandbox Code Playgroud)
正在执行的代码:
MongoClient client = new MongoClient("mongodb://localhost");
MongoServer server = client.GetServer();
MongoDatabase mongoDatabase = server.GetDatabase("GameCollection");
Run Code Online (Sandbox Code Playgroud)
完整的错误消息:
mscorlib.dll中发生了未处理的"System.IO.FileNotFoundException"类型异常
附加信息:无法加载文件或程序集'System.Runtime.InteropServices.RuntimeInformation,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'或其依赖项之一.该系统找不到指定的文件.