Question : connecting to mysql from asp.net ERROR

Why is the code below generating the following errors?  Also, should I delete the one in the GAC?



Error      2      The type 'MySql.Data.MySqlClient.MySqlConnection' exists in both 'c:\Windows\assembly\GAC_MSIL\MySql.Data\6.2.3.0__c5687fc88969c44d\MySql.Data.dll' and 'c:\Users\Isaac S\AppData\Local\Temp\Temporary ASP.NET Files\larafabric\8512f84f\63004ea7\assembly\dl3\621296ed\0055a466_41d8ca01\MySql.Data.CF.DLL'      C:\Users\Isaac S\Documents\Visual Studio 2008\WebSites\laraFabric\contact.aspx.cs      24      33      C:\...\laraFabric\
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using MySql.Data.MySqlClient;
using System.Data.SqlClient;

public partial class contact : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void image_Click(object sender, EventArgs e)
    {
        MySqlConnection c = new MySqlConnection("Network Address=localhost;" +
                                                "Initial Catalog='fabrics';" +
                                                "Persist Security Info=no;" +
                                                "User Name='root';" +
                                                "Password='xxx'");
    }
}

Answer : connecting to mysql from asp.net ERROR

delete the one in bin
Random Solutions  
 
programming4us programming4us