homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Databases
Forum Library, Charter, Moderator: open

Databases Forum

MySql connection string error

5+ Year Member

Msg#: 4112628 posted 10:06 pm on Apr 8, 2010 (gmt 0)

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?




5+ Year Member

Msg#: 4112628 posted 9:31 pm on Apr 9, 2010 (gmt 0)

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

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Databases
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved