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.
Always use parameters | Unhandled Exceptions | My personal site | MSDN - DataGridView | Data Walkthroughs| LINQ in Visual Basic
Embedding Type Information | BindingSource Component| MVP Siddharth Rout page for VB.NET and Excel | Manage Local Data Files