I'm programming a mySQL related application in VS2010 Pro IDE on Win 8.1 with VB.net. My program works great from inside the IDE, however, when I run it from the .exe it always encounters the following error:
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'MySql.Data.CF, Version 18.104.22.168, Culture=neutral, PublicKeyToken=c5687fc88969c44d, Retargetable=Yes' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
I'm pretty sure this has something to do with the fact that I previously used VS2013 Express for Desktop on this machine. I wasn't happy with the new Express version, so I uninstalled it and installed this older version of VS2010 Pro.
Can you please help me figure out how to get rid of this error? And be able to run stand-alone .exe version of this program?