'MySql.Data.MySqlClient.MySqlConnection' not defined

  • Thread starter Thread starter Ben
  • Start date Start date
B

Ben

Hi,

I try to connect to Mysql using the Mysql Connector 1.0.7.

In "mysql.aspx", i put:
<%@ import namespace="System.Data"%>
<%@ Import Namespace = "MySql.Data.MySqlClient" %>
.....

In "mysql.aspx.vb", i put:
Dim oConnection As MySql.Data.MySqlClient.MySqlConnection
......

But the browser gives this error:
"Type 'MySql.Data.MySqlClient.MySqlConnection' is not defined.

Any idea why this doesn't work and how to solve this?
Thanks
Ben

PS: I did the same with Mysql Connector Odbc 3.51 and Odbc.net (dim
oConnection as Microsoft.Data.Odbc.OdbcConnection) and this works
 
Hi,

I try to connect to Mysql using the Mysql Connector 1.0.7.

In "mysql.aspx", i put:
<%@ import namespace="System.Data"%>
<%@ Import Namespace = "MySql.Data.MySqlClient" %>
....

In "mysql.aspx.vb", i put:
Dim oConnection As MySql.Data.MySqlClient.MySqlConnection
.....

But the browser gives this error:
"Type 'MySql.Data.MySqlClient.MySqlConnection' is not defined.

Any idea why this doesn't work and how to solve this?
Thanks
Ben

PS: I did the same with Mysql Connector Odbc 3.51 and Odbc.net (dim
oConnection as Microsoft.Data.Odbc.OdbcConnection) and this works

The undefined is from the dll not being referneced by the project. Are
you sure you are referencing it?
Peter Kellner
http://peterkellner.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top