Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP 3.0 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 August 13th, 2004, 02:38 AM
Registered User
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CarlHu
Default Record.Open doesn't work

Hi, I am new to this forum. would like to ask why I can't make the following code work on my computer (I'm using IIS5 on Windows 2000 server):
Code:
<%
Option Explicit

'Use ADO's Record object to open an URL
Dim objRec
Set objRec = Server.CreateObject("ADODB.Record")
objRec.Open "", "http://localhost/myFolder/"
objRec.Close
The following error always occurs:
Code:
Microsoft OLE DB Provider for Internet Publishing (0x80004005)
Unspecified error 
....asp, line ...
anyone could tell me the reason? would appreciate any kinds of help.

None for now.
 
Old August 13th, 2004, 02:58 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Check this out.

ADODB.record

Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old January 1st, 2005, 04:29 PM
Registered User
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am having the same problem with the example on page 615 of Beginning Active Server Pages 3.0

<%Option Explicit %>
<HTML>
<HEAD>
<TITLE>Retrieving Semi-structured Data</TITLE>
</HEAD>
<BODY>
<%
  Dim objNodeRecord, objNodeField
  Set objNodeRecord = Server.CreateObject("ADODB.Record")
  objNodeRecord.Open "","URL=http://lesley/BegASP/"

  Response.Write "<H2>Properties of the folder:</H2>"
  Response.Write "<TABLE BORDER='1'>"
  For Each objNodeField in objNodeRecord.Fields
    Response.Write "<TR>" & _
            "<TD>" & objNodeField.Name & "</TD>" & _
            "<TD>" & objNodeField.Value & "</TD>" & _
          "</TR>"
  Next
  Response.Write "</TABLE>"
  objNodeRecord.Close
  Set objNodeRecord = Nothing
%>
</BODY>
</HTML>

I get the following error message:

Error Type:
Microsoft OLE DB Provider for Internet Publishing (0x80004005)
Unspecified error

I think the problem is to do with permissions but I cannot work out how to solve it.

Help please



 
Old October 18th, 2005, 04:16 PM
Registered User
 
Join Date: Oct 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm having a similar problem with the code on p. 615 also but the error message I get is:

Connection to the server for this URL cannot be established.

I don't think this is a permission error because I can use other asp files in this directory.

My connection code looks like this (this is the line giving the error):

  objNodeRecord.Open "","URL=http://192.168.1.108/BegASPFiles/"

Hope somebody has had similar experience.

Peter

 
Old October 19th, 2005, 09:37 PM
Friend of Wrox
 
Join Date: Oct 2005
Posts: 124
Thanks: 0
Thanked 1 Time in 1 Post
Default

I just had the same error message. http://Computer name/my directory or http://localhost/my directory received the same error message. I even tried using the phyical path, i.e. c:\Inetpub\wwwroot\my directory. The same error message.

-- Jeffrey

C. Jeffrey Wang





Similar Threads
Thread Thread Starter Forum Replies Last Post
Open Form to Add New Record is Blank echovue Access 9 July 10th, 2013 03:38 PM
Open a form to enter a new record dstein4d Access VBA 1 August 17th, 2007 12:36 PM
How do you open a specific record from a search? Szimmer9 VB How-To 1 March 31st, 2006 12:57 AM
How to open only the record with highest ID ?! SKE Classic ASP Databases 2 May 16th, 2005 06:05 AM





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