title: MongoDB unusual error perhaps?
body: <p>today I wanted to move on from SQL Ce to MongoDB. I downloaded the driver and ran the server locally on my PC.</p>
  
  <p>Here's my actual code (btw I don't even know if it's safe to cast IMongoCollection to MongoCollection):</p>
  
  <pre><code>using System;
  using MongoDB.Driver;
  
  namespace MongoShit
  {
      class Program
      {
          class Apple
          {
              public int price, weight;
              public string color;
  
              public Apple()
              {
                  price = 0;
                  weight = 0;
                  color = "ayye";
              }
          }
  
          static protected IMongoClient client;
          static protected IMongoDatabase database;
  
          static void Main(string[] args)
          {
              client = new MongoClient("mongodb://localhost");
              database = client.GetDatabase("test");
  
              database.CreateCollection("apples");
  
              var data = new Apple() { price = 100, weight = 500, color = "green" };
  
              MongoCollection&lt;Apple&gt; collection = (MongoCollection&lt;Apple&gt;)database.GetCollection&lt;Apple&gt;("apples");
              collection.Insert(data);
  
              var cursor = collection.FindAll();
              foreach(Apple a in cursor)
              {
                  Console.WriteLine(string.Format("Apple, P: {0}   W: {1}   C: {2}", new object[] { a.price, a.weight, a.color }));
              }
              Console.Read();
          }
      }
  }
  </code></pre>
  
  <p>But whenever I try to run the program I get the following error:
  An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll</p>
  
  <p>Additional information: Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</p>
  
  <p>What's going on? :S</p>