#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2013
    Posts
    1
    Rep Power
    0

    File not found with UNC path to remote server (IIS8)


    Hi,

    I'm using asp classic application to check for file located in the remote server (serverB).

    My asp application configured in serverA. Both servers installed with IIS 8 (Windows 2012).

    Code:
    DIM fso,FilePath
    Set fso = CreateObject("Scripting.FileSystemObject")
    
    FilePath="\\serverB\dc\myfile.txt"
    
    if (fso.FileExists(FilePath)) then
    
       response.Write("File exist")
    
    else
    
       response.Write("File does not exist")
    
    end if
    When i run my asp application, it will show "File does not exist".

    I already added permissions for IUSR and IIS_IUSRS to the UNC shared drive.

    Any idea? Thanks in advance..
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,503
    Rep Power
    4540
    I've never used Windows 8, but it sounds like some kind of permissions issue over your network.
    ======
    Doug G
    ======
    I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton

IMN logo majestic logo threadwatch logo seochat tools logo