|
-
Apr 22nd, 2002, 12:54 AM
#1
Thread Starter
Member
ODBC .Net Data Provider question
Hi
I've installed ODBC .Net Data Provider and MDAC 2.7 on my web server, but why does it always give error when I use the System.Data.ODBC namespace?
The import part of my code is as follows:
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.Odbc" %>
<%@ Assembly Name = "System.Data.Odbc" %>
The error is:
Parser Error Message: File or assembly name System.Data.Odbc, or one of its dependencies, was not found.
The server:
Windows2000, SQL server 7
I've tried changing System.Data.Odbc to Microsoft.Data.Odbc (since that's what I saw on some sites), but the result is the same. Can someone tell me what I've been missing out?
Thanks!
-
Apr 22nd, 2002, 09:08 AM
#2
Why are you using the Assembly marker? Isnt System.Data.ODBC already part of the framework, therefore using that is pointless. You only use that for third party dll's you have in your bin directory.
-
Apr 22nd, 2002, 08:27 PM
#3
Thread Starter
Member
As far as I know, the Microsoft.Data.ODBC is currently still an add-on component for the .Net framework. It will be included in the next release of .Net framework and the name will then be changed to System.Data.ODBC.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|