connection string

Jul 26 2015 1:41 AM
I am using IDE - Xamarin and Database- Mariadb for creating asp.net application
 
I get error while writing the connection string in my project. I am using MySql connector 6.9.6
 
my connection string is
 MySqlConnection cl = new MySqlConnection("Server=127.0.0.1;Port=3306;UID=root; PWD=samhitha;Database=db10to12");
 
I am getting an error saying that  
C:\Users\Prasad\Documents\Projects\test\test\sample.aspx.cs(2,2): Error CS0433: The type 'MySql.Data.MySqlClient.MySqlConnection' exists in both 'c:\Program Files\MySQL\MySQL Connector Net 6.9.6\Assemblies\v2.0\MySql.Data.CF.dll' and 'c:\Program Files\MySQL\MySQL Connector Net 6.9.6\Assemblies\v4.5\MySql.Data.dll' (CS0433) (test)
 
please help me to solve this bug.
 
Thank you in advance
 
 
 

Attachment: test.rar

Answers (8)