Help with Error: Could not load file or assembly MySql.Data.CF

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 6.8.3.0, 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?

down vote accepted
You must add provider library to bin directory in your web application and register provider in your web.config
Then You must download Connector .Net Mono here. (http://dev.mysql.com/get/Downloads/Connector-Net/mysql-connector-net-6.5.3-noinstall.zip/from/http://ftp.gwdg.de/pub/misc/mysql/)

Featured Post

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way.
I've always enjoyed working with graphics, but it's never too clever to re-invent …

1.0 - Introduction
Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET).
If ever there was a subject full of murkiness and bad decisions, it is this one! The first problem seems to be that people considering this task of converting…

Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes.
Assigning simple products to configurable: We assigned simple products…