I setup a set of automated tests for one of my pet projects but annoyingly I came across the following error today:
System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
----> System.IO.FileLoadException : Could not load file or assembly 'MongoDB.Driver.Legacy, Culture=neutral, PublicKeyToken=null'. Invalid pointer (0x80004003 (E_POINTER))
The solution is to install the old mongocsharpdriver library in the test project.