Need to install Mysql-connector-net-6.7.4.msi
Locate three DLLs in the location of the C-drive installation MySQL, and copy to the Bin folder
Increase in C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config
<system.data>
<DbProviderFactories>
<add name= "MySQL data Provider" invariant= "MySql.Data.MySqlClient" description= ". Net Framework Data Provider for MySQL "Type=" MySql.Data.MySqlClient.MySqlClientFactory, Mysql.data, version=6.7.4.0, Culture=neutral, Publickeytoken=c5687fc88969c44d "/>
Or add a reference under the web of the configuration file, Pubulishkeytoken according to the version.
<system.data>
<DbProviderFactories>
<remove invariant= "MySql.Data.MySqlClient"/>
<add name= "MySQL data Provider" invariant= "MySql.Data.MySqlClient" description= ". Net Framework Data Provider for MySQL "Type=" MySql.Data.MySqlClient.MySqlClientFactory, Mysql.data, version=6.7.4.0, Culture=neutral, Publickeytoken=c5687fc88969c44d "/>
</DbProviderFactories>
</system.data>
MySQL cannot find or fail to load the registered. Net Framework Data Provider