WEBDAV - ASP, I am Struck!!


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: WEBDAV - ASP, I am Struck!!

  1. #1
    Join Date
    May 2008
    Posts
    1

    WEBDAV - ASP, I am Struck!!

    I am trying to read the folder list from another system which is in another domain using WEBDAV.

    It works fine in my local system. But when I uploaded the files in the test/production server which are having valid domain address like www.mywebsite.com , it gives the following error in the line,

    Code:
    recRoot.Open "MyFolder/","URL=http://MyIPAddress/"
    The error returned is

    "Object or data matching the name, range, or selection criteria was not found within the scope of this operation. "

    In my test server the error returned is different which is

    "Microsoft OLE DB Provider for Internet Publishing error '80004005'

    Unspecified error "


    but it is the same line
    Code:
    recRoot.Open "MyFolder/","URL=http://MyIPAddress/"
    which causes this error.

    My requirement is simple.. I have to list the tree style folder structure contained in another machine using ASP.

    please help. Any Idea!!

    Below is my complete code ,


    Code:
    	Set recRoot = Server.CreateObject ("ADODB.Record")
    	recRoot.Open "MyFolder/","URL=http://MyIPAddress/"  
                 Set rsChildren = recRoot.GetChildren
                 Response.write rsChildren.EOF
    	Do Until rsChildren.EOF
                	    Response.Write rsChildren("RESOURCE_PARSENAME") & "<BR>"
            	    rsChildren.MoveNext
            	Loop

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Welcome to DevX

    Are all the necessary permissions in place? Can you access the other server outside of your code?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    May 2008
    Posts
    1
    I tried to read the server's local folder like URL=http://localhost/myfolder,
    it gives the same error. I checked the permissions , all seems to be OK. All listed user accounts have read,list folder permissions given.
    Directory browsing too enabled. I can browse the same directory via IIS Directory browsing.
    Is WEBDAV Internet publishing limited to IIS version?

Similar Threads

  1. convert my asp pages to asp.net
    By Emad Ramadan in forum ASP.NET
    Replies: 4
    Last Post: 09-30-2008, 08:12 AM
  2. Replies: 0
    Last Post: 02-22-2002, 08:44 AM
  3. working on ASP as a beginner!
    By sahar in forum ASP.NET
    Replies: 2
    Last Post: 12-10-2000, 07:18 PM
  4. getting better at ASP
    By Deborah D Brown in forum authorevents.mitchell
    Replies: 2
    Last Post: 10-17-2000, 05:28 PM
  5. Re: Bitten by the ASP
    By Keith Franklin, MCSD in forum Talk to the Editors
    Replies: 18
    Last Post: 09-27-2000, 12:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center