SunQuest
           ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 28th, 2003, 07:49 AM
grifen grifen is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Scotland
Posts: 79 grifen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 8 m 55 sec
Reputation Power: 8
Send a message via AIM to grifen Send a message via Yahoo to grifen
ODBC .NET Data provider problem?

I'm running ASP.NET on my PC with IIS.
I'm trying to connect to a database on the network.
So I installed ODBC .NET Data provider.
I've been to Control Panel > Administrative Tools > Microsoft .NET Framework configuration > Assembly Cache

I've checked to make sure that Microsoft.Data.Odbc is in the list.

The code that I am running is shown below.
If I remove all the VB then it complains that it can't find Microsoft.Data.Odbc.

The error message if I remove all the VB is:
Compiler Error Message: BC30466: Namespace or type 'Odbc' for the Imports 'Microsoft.Data.Odbc' cannot be found.

Anyone experienced this or knows what the problem is?

Thanks.

<%@ Page LANGUAGE="VB"%>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="Microsoft.Data.Odbc" %>
<SCRIPT LANGUAGE="VB" RUNAT="server">
Sub Page_Load(Sender As Object, E As EventArgs)
Dim oConn As OdbcConnection
Dim sConnString As String
sConnString = "DSN=helpdesk_sql"
oConn = New OdbcConnection(sConnString)
oConn.Open()
oConn.Close()
End Sub
</SCRIPT>
<HTML>
<BODY>
Opening a Connection with ODBC!
</BODY>
</HTML>

Reply With Quote
  #2  
Old July 31st, 2003, 09:07 AM
NickHow NickHow is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Manchester, UK
Posts: 1 NickHow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation

Microsoft have released a temporary fix until a new release of ODBC.net is done.

Q318917

Should work, it did for me

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > ODBC .NET Data provider problem?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway