Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

 

Compiler Error Message: BC30002: Type 'OdbcConnection' is not defined.

 

 

<%@ Page LANGUAGE="VB"%>

<%@ Import Namespace="System.Data" %>

<%@ Import Namespace="System.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 = "DNS=band"

oConn = New OdbcConnection(sConnString)

oConn.Open()

oConn.Close()

End Sub

</SCRIPT>

<HTML>

<BODY>

Opening a Connection with ODBC!

</BODY>

</HTML>

 

there is a ODBC connectoion named band.........

can any on help

Posted
Just want to check with you, do you use .NET Framework 1.0 or 1.1? If 1.0, did you install ODBC? because .NET Framework 1.0 original did not support ODBC, you need to install it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...