Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

MySql connection string error



10:06 pm on Apr 8, 2010 (gmt 0)

5+ Year Member

My connection to to MySQL remote database below, but an error is returned: BC30002: 'type

MySql.Data.MySqlClient.MySqlConnection' is not defined'

web.config file:
<add name=" ConnStringName" connectionString="server-91.#*$!.xx.x; port=3362;uid=friendso_rch;pwd=#*$!x;database=test_aaaaa"
providerName="MySql.Data.MySqlClient" />


<%@ Page Language="VB" Debug="true" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="System.Data.Odbc" %>
<%@ Import Namespace="MySql.Data.MySqlClient" %>

Dim myConnection As MySql.Data.MySqlClient.MySqlConnection = New MySql.Data.MySqlClient.MySqlConnection(ConfigurationManager.ConnectionStrings("ConnStringName").ConnectionString)

Is an Import missing or error in the code?



9:31 pm on Apr 9, 2010 (gmt 0)

5+ Year Member

I have resolved the problem.MySql.Data.dll in bin directory.

Featured Threads

Hot Threads This Week

Hot Threads This Month