Problems accessing files on another server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cschmid
    New Member
    • Aug 2008
    • 1

    Problems accessing files on another server

    I have the same problem that Geoff Lane in 2007, the post was not solved by any users, I copy it in my post.
    Any Idea?

    link of original post : http://bytes.com/forum/thread648712.html

    Original Text Post:
    Development environment: Windows 2003 Server running IIS6 and the same
    server running as a domain controller, DNS and DHCP servers.

    Production environment: Windows 2000 Server SP4 running IIS5 and not used
    to provide domain control or name services.

    The two environments are on different networks with no trust relationship
    between them. In both environments the web server is set up to disallow
    anonymous access and to use integrated Windows authentication. The
    application is vanilla ASP (i.e. not .NET) VBScript.

    In the development environment, the following code runs flawlessly no
    matter whether "myUNCPath" points to a share on the web server or a share
    on another server in the same domain.

    Set objFilesys = Server.CreateOb ject("Scripting .FileSystemObje ct")
    If Not objFileSys.Fold erExists(myUNCP ath) Then
    Set objFolder = objFileSys.Crea teFolder(myUNCP ath)
    End If

    However, in the production environment it falls over with a permission
    denied error when "myUNCPath" is on another server and further testing
    shows that the FolderExists method is returning false even when
    "myUNCPath" exists. The network share is configured to give full control
    to the Everyone group.

    I've found http://support.microsoft.com/kb/207671 which although
    referring to IIS4 suggests that the issue could be the authentication
    method (I'm assuming that integrated Windows authentication is close
    enough to NT Challenge/Response and so might generate a token that cannot
    access network resources). I'm not sure of this is the problem because if
    it were then the code shouldn't work in my development environment.

    Any ideas on what's going wrong and how to access the network resources
    in the production environemt?

    TIA,
    Claudio Schmid
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    Geoff Lane didn't actually post in our forum, we just include discussions from several newsgroups in our archives. That said, I will attempt to help you.

    1- you need to access data from another server and you are using scripting.files ystemobject. the scripting filesystemobjec t has a limitation that the logged in user (anonymous web user by default) must have access to the file and directory in order to work. Do you need to use scripting.fileS ystemObject? Could you give more details about what you are trying to open? Is it just a plain text file?

    Jared

    Comment

    Working...