Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 3rd, 2006, 06:22 AM
Authorized User
 
Join Date: Jul 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default BC30002: Type 'OLEDBConnection' is not defined.

I am new to this and i am trying an example from this book i purchased, asp.net 1.0 with visual basic .net

All i am trying to do is the following

Dim strConn As String = Application("ConnectionString")
Dim Conn As New OLEDBConnection(strConn)

and i am getting the error.

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

Line 14:
Line 15: Dim strConn As String = Application("ConnectionString")
Line 16: Dim Conn As New OLEDBConnection(strConn)
Line 17:
Line 18: Conn.Open()

on Line16.

Why is this happening in the example i am typing it exacly the same.

can anyone help me.

 
Old July 5th, 2006, 09:03 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Have you verified that the strConn is actually being assigned a value?

"The one language all programmers understand is profanity."





Similar Threads
Thread Thread Starter Forum Replies Last Post
ADODB.Connection user-defined type not defined Wall st Guru Excel VBA 2 March 26th, 2014 03:44 PM
Error : BC30002: Type 'xxx' is not defined. cmualo ASP.NET 2.0 Basics 2 June 20th, 2007 08:25 AM
User-defined type not defined (Icecream.mdb) dloren01 BOOK: Beginning Access VBA 0 June 22nd, 2005 10:36 PM
Type is not defined mdbriggs BOOK: Professional Crystal Reports for VS.NET 0 April 8th, 2005 08:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.