|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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> |
|
#2
|
|||
|
|||
|
Microsoft have released a temporary fix until a new release of ODBC.net is done.
Q318917 Should work, it did for me ![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > ODBC .NET Data provider problem? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|