Here is one I don't understand. When I build the app with AnyCPU then it works fine. When I build with x86 it throws that error when running code. I need x86 since I am running this app in a W7 environment.
Take a look at
Then the following (when it comes to code sorry its C but the information is valid)
Not sure if this will be the direction you would take or not.