I have Windows 8.1, MySql 5.6, and Visual Studio Ultimate 2012.
I am trying to set a DataSet, but I am having the error Cannot obtain provider factory for data provider named MySql.Data.MySqlClient
when I try to drag a table to the DataSet.
a) The Server Explorer can access the database and show me all tables, and the "Test Connection" button returns a successful message.
b) I added MySql references to the bin folder (MySql.Data
, MySql.Data.Entity
, MySql.Web
).
c) I edited the Web.config
file removing MySql.Data.MySqlClient
invariant and adding it again with "correct" settings. I tried to set <connectionStrings>
, <DbProviderFactories>
, membership providers, profile providers, and RoleManager providers;
d) I have already uninstalled and reinstalled MySql and Visual Studio.
Nothing seems to work, and the same error remains happening. I have already tried a lot of suggestions from this and other forums.
Worked for me, steps below:
Hope this helps.
you have to install mysql connector just download the last version of MySql connector and install it while closing visual studio
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With