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

Databases Forum

    
MySql connection string error
latoc




msg:4112630
 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:
<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

 

latoc




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

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

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