1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

WEBDAV- ASP, I am struck!!

Discussion in 'C#' started by mikewallace, May 25, 2008.

  1. #1
    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.mywebpage.com , it gives the following error in the line,

    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 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 ,


    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
     
    mikewallace, May 25, 2008 IP
  2. iconico

    iconico Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Check that your asp worker process has access rights to the folder.
     
    iconico, Jun 10, 2008 IP