Which is correct DLL for using MySqlClient
Posted by: Upendra Watwe
Date: May 17, 2016 01:25PM

I keep getting this error -
The type 'MySql.Data.MySqlClient.MySqlConnection' exists in both 'c:\Users\Upendra\Documents\Visual Studio 2010\Projects\CrosswordMVC\packages\MySQL.NET.6.6.4\lib\net20\MySql.Data.dll' and 'c:\Users\Upendra\Documents\Visual Studio 2010\Projects\CrosswordMVC\packages\MySQL.NET.6.6.4\lib\net20\MySql.Data.CF.dll' C:\Users\Upendra\documents\visual studio 2010\Projects\MySqlMVC\MySqlMVC\Models\BusinessLayer.cs 26 17 MySqlMVC

Which is the correct library to use ?
I had added references to the following only

Somehow the MySql.Data.CF gets added - is this through the MySql Connector/NET ?
In this case-
how do I reference the MySqlClient class ?
I know one solution is to use fully qualified namespaces, but more importatnt question I need answered is which fully qualified namespace one should I use ?

Options: ReplyQuote

Written By
Which is correct DLL for using MySqlClient
May 17, 2016 01:25PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.