Welcome to WebmasterWorld Guest from 54.146.59.202

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:
<connectionStrings>
<add name=" ConnStringName" connectionString="server-91.#*$!.xx.x; port=3362;uid=friendso_rch;pwd=#*$!x;database=test_aaaaa"
providerName="MySql.Data.MySqlClient" />
</connectionStrings>


page.aspx

<%@ 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?

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

5+ Year Member



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

Featured Threads

Hot Threads This Week

Hot Threads This Month