odbc works in one application, not in another

  • Thread starter Thread starter Ben
  • Start date Start date
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
 
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?
 
Does the second project actually has

Does the second project actually have

Sorry.
 
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

.....
 
Back
Top