Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP 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 June 18th, 2003, 12:17 AM
Registered User
 
Join Date: Jun 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to cyrusds_asp
Default ADODB.Connection - OBJECT REQUIRED ERROR


 Im currently using winxp pro, inside my asp script the browser keeps on displaying that an OBJECT IS REQUIRED, and was pointing on this line:

          set cnn = Server.CreateObject("ADODB.Connection")

Can you please guide how to resolve this problem.... please help.
I have declared the variable as: DIM cnn, then supplied the statement above as the next statement.

Cyrus
 
Old June 18th, 2003, 03:04 AM
Registered User
 
Join Date: Jun 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

First In your asp add this file on the top of the page



If you dont have this file then mail me at: [email protected] i will send you the file, this is necessary file,to work properly with the given path, keep the file in the same directory where your asp page is available.

and even after that if your porblem appears then we will again try to find the solution, or if possible send me ur page
in which you are writing your code..... on the above email address..

Thanks
 
Old June 25th, 2003, 03:34 AM
Registered User
 
Join Date: Jun 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to cyrusds_asp
Default

Thank you for the reply, i will try it immediately, if there are problems, i will try to send you an email, thanks again..

Cyrus
 
Old July 17th, 2003, 01:54 AM
Registered User
 
Join Date: Jun 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to cyrusds_asp
Default

i have tried to attach the code you have mentioned , but nothing happened, can you give me your email.. thanks

Cyrus
 
Old July 17th, 2003, 02:04 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

I do not think it is this line which is causing the error.

set cnn = Server.CreateObject("ADODB.Connection")

Can you post more code?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Object Required Error JeffGirard Access 5 October 2nd, 2009 08:09 AM
Object Required error voyeur Javascript 9 January 25th, 2008 11:50 AM
Compile Error: Object required DeannaF829 Beginning VB 6 1 April 24th, 2007 07:12 AM
Object required error ?? hman SQL Server ASP 11 June 21st, 2004 10:59 AM
error....Object required: '' sassenach Classic ASP Databases 2 August 4th, 2003 03:27 PM





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