Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. 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 Databases 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 February 7th, 2005, 10:46 AM
Authorized User
 
Join Date: Jun 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default Server.CreateObject Failed

I have a newly-installed machine running Win 2000 Pro, IIS 5.

I am trying to connect to an Access 2000 database but keep getting this message:

Server object error 'ASP 0177 : 800700c1'

Server.CreateObject Failed

/Develop/DBTest.asp, line 19

800700c1

The code is:

Dim adOpenForwardOnly, adLockReadOnly, adCmdTable
adOpenForwardOnly = 0
adLockReadOnly = 1
adCmdTable = 2

Dim objConn, objRS
Set objConn = Server.CreateObject("ADODB.Connection")
Set objRS = Server.CreateObject("ADODB.Recordset")

objConn.Open = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\DBTest.mdb;Persist Security Info=False" 'this is line 19

IIS 5 is uncharted territory for me. so any help or suggestions will be gratefully received.


-------------------
System 3 2000 Limited
www.system3-2000.co.uk
__________________
-------------------
System 3 2000 Limited
www.system3-2000.co.uk (but very out-of-date!)
 
Old February 7th, 2005, 11:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

What version of the MDAC is on the machine?
 
Old February 7th, 2005, 11:50 AM
Authorized User
 
Join Date: Jun 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have to admit I am not sure, but it is whatever version is installed with Windows 2000 Pro. I have downloaded MDAC 2.8 from Microsoft but have not installed it yet.

Pat

-------------------
System 3 2000 Limited
www.system3-2000.co.uk
 
Old February 7th, 2005, 05:46 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

That error usually occurs because the component isn't installed, or the account doesn't have special permissions (like dcomcnfg for the office API). The latter doesn't apply for ADODB. I would try to install the MDAC and see if that fixes your problem. I don't know of any other error that may be... doesn't mean there isn't any....

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
What is Server,CreateObject("File.clsFile")? SMM Classic ASP Professional 0 May 7th, 2007 08:31 AM
Server.CreateObject Failed Crystal Report V 8.0 AndrewMoreno Classic ASP Professional 0 December 19th, 2006 10:53 AM
How To use server.createobject in c# ranakdinesh C# 0 November 4th, 2005 08:18 AM
Server.CreateObject Failed ckwizard77 Classic ASP Components 2 October 23rd, 2004 09:41 AM





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