Thread: System.io.file.exsists & mapped drive

Results 1 to 5 of 5
Share This Thread →
  1. #1
    jonpanky is offline Contributing User ASP Free Newbie (0 - 499 posts)
    Join Date
    Jan 2005
    Location
    Kent, UK
    Posts
    197
    Rep Power
    11

    System.io.file.exsists & mapped drive

    Hi,

    I'm trying to check if a file exists in a mapped folder.

    Code:
                   
     If IO.File.Exists(PhysicalLocation) Then
      blnExists = True
     Else
      blnExists = False
    End If
    Web server 2008 R2
    IIS7

    For some reason it keeps returning false, it must be a permissions issue on the folder.

    Does anyone know which account I should give permission to on the folder so that .net it can access the folder?
    Life is not a dress rehersal!

    My hobby:
    Photo4me.com

  2. #2
    jonpanky is offline Contributing User ASP Free Newbie (0 - 499 posts)
    Join Date
    Jan 2005
    Location
    Kent, UK
    Posts
    197
    Rep Power
    11
    I have given IUSR and IIS_IUSRS read/write permissions on the folder and it's still not working

  3. #3
    gk53's Avatar
    gk53 is offline Contributing User ASP Free Beginner (1000 - 1499 posts)
    Join Date
    Mar 2005
    Location
    Columbus, OH
    Posts
    1,217
    Rep Power
    263
    if you just check for file it is not permissions...
    Check value of PhysicalLocation ...
    GK
    __________________________________________________ _____
    if you found this post is useful click scale (right side on this reply ) and agree

  4. #4
    jonpanky is offline Contributing User ASP Free Newbie (0 - 499 posts)
    Join Date
    Jan 2005
    Location
    Kent, UK
    Posts
    197
    Rep Power
    11
    Hi Yes done that the file opens up in explorer...

  5. #5
    jonpanky is offline Contributing User ASP Free Newbie (0 - 499 posts)
    Join Date
    Jan 2005
    Location
    Kent, UK
    Posts
    197
    Rep Power
    11
    In case anyone else has this problem we used UNC instead of mapped drive

Share This Thread →

Become Part of This Conversation

Join NowFor Free!

Similar Threads

  1. Connecting to db using mapped drive?
    By lightningrod66 in forum ASP Development
    Replies: 6
    Last Post: July 4th, 2007, 01:43 PM
  2. Get folders in mapped drive
    By nalin_769 in forum ASP Development
    Replies: 1
    Last Post: May 6th, 2005, 02:25 AM
  3. Replies: 4
    Last Post: October 14th, 2004, 10:57 AM
  4. How to get file from a network mapped folder
    By YMU in forum ASP Development
    Replies: 2
    Last Post: September 10th, 2003, 09:45 PM

ASP Free Advertisers and Affiliates