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
8 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Raja TPosted Jul 26, 2015, 2:07 AM
Please check out bellow URLs
http://stackoverflow.com/questions/5782639/asp-net-compilation-error-mysql-data
http://forums.asp.net/t/1232471.aspx?Compiler+Error+Message+CS0433+The+type+MySql+Data+MySqlClient+MySqlConnection+exists+in+both+
http://codeverge.com/asp.net.config-deploy/compiler-error-message-cs0433-the-type/280647
Raja TPosted Jul 27, 2015, 12:25 AM
samhitha nittalaPosted Jul 26, 2015, 6:57 AM
samhitha nittalaPosted Jul 26, 2015, 5:27 AM
Raja TPosted Jul 26, 2015, 4:04 AM
Please check bellow url for sample mySql db connection project solution source
https://www.dropbox.com/s/sh209zswtcshtmw/mysqlconnectiontest.zip?dl=0
Raja TPosted Jul 26, 2015, 3:37 AM
http://www.dreamincode.net/forums/topic/279740-urgent-error-the-nametextbox-does-not-exist-in-the-current-context/
http://forums.asp.net/t/1006588.aspx?The+name+xxx+Does+Not+Exist+in+the+Current+Context
https://msdn.microsoft.com/en-us/library/t8zbaa6f.aspx
Raja TPosted Jul 26, 2015, 3:29 AM
samhitha nittalaPosted Jul 26, 2015, 2:25 AM