odbc works in one application, not in another

B

Ben

Hi,

I made two rootapplications with VWD under IIS 5.
I installed ODBC.net connector from Microsoft and Myodbc 3.51 from Mysql.
The same files (test.aspx and test.aspx.vb) has been copied in both
rootapplications.
In the first rootapplication, it works.
In the other, i get:

"Type 'Microsoft.Data.Odbc.OdbcConnection' is not defined."

The code:
(in test.aspx):
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="mysqlodbc.aspx.vb"
Inherits="mysqlodbc" %>
<%@ import namespace="System.Data"%>
<%@ import namespace="Microsoft.Data.Odbc"%>
.....
(in test.aspx.vb)
Partial Class mysqlodbc
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Dim oConnection As Microsoft.Data.Odbc.OdbcConnection
....

I would understand that none would work, but one yes and the other no ....??
Thanks for any hint
Ben
 
P

Patrick Philippot

Hi,

Importing a namespace and referencing an assembly is not teh same thing.
Does the second project actually has a refrence on the required assembly?
 
P

Patrick Philippot

Does the second project actually has

Does the second project actually have

Sorry.
 
B

Ben

Hi,

thanks for replying.
In both projects, when i go to menu Website/Add reference/Recent (in VWD), i
can see:
Microsoft.data.odbc .net
Mysql.data.dll

.....
 

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

Top