Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 13th, 2004, 02:38 AM
Registered User
 
Join Date: Aug 2004
Location: Shanghai, Shanghai, China.
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.
  #2 (permalink)  
Old August 13th, 2004, 02:58 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
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
  #3 (permalink)  
Old January 1st, 2005, 04:29 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Orsett, Grays, Essex, United Kingdom.
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



  #4 (permalink)  
Old October 18th, 2005, 04:16 PM
Registered User
 
Join Date: Oct 2005
Location: Brooklyn, NY, USA.
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

  #5 (permalink)  
Old October 19th, 2005, 09:37 PM
Friend of Wrox
Points: 630, Level: 9
Points: 630, Level: 9 Points: 630, Level: 9 Points: 630, Level: 9
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Austin, TX, USA.
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:44 PM.


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