#1
  1. No Profile Picture
    Contributing User
    ASP Discoverer (100 - 499 posts)

    Join Date
    Jan 2005
    Location
    Kent, UK
    Posts
    198
    Rep Power
    12

    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
  3. No Profile Picture
    Contributing User
    ASP Discoverer (100 - 499 posts)

    Join Date
    Jan 2005
    Location
    Kent, UK
    Posts
    198
    Rep Power
    12
    I have given IUSR and IIS_IUSRS read/write permissions on the folder and it's still not working
  4. #3
  5. Contributing User
    ASP Skiller (1500 - 1999 posts)

    Join Date
    Mar 2005
    Location
    Columbus, OH
    Posts
    1,587
    Rep Power
    278
    if you just check for file it is not permissions...
    Check value of PhysicalLocation ...
    GK
    __________________________________________________ _____
    if you found this post is useful click Give Rep button (bottom side on this reply ) and agree
  6. #4
  7. No Profile Picture
    Contributing User
    ASP Discoverer (100 - 499 posts)

    Join Date
    Jan 2005
    Location
    Kent, UK
    Posts
    198
    Rep Power
    12
    Hi Yes done that the file opens up in explorer...
  8. #5
  9. No Profile Picture
    Contributing User
    ASP Discoverer (100 - 499 posts)

    Join Date
    Jan 2005
    Location
    Kent, UK
    Posts
    198
    Rep Power
    12
    In case anyone else has this problem we used UNC instead of mapped drive

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

IMN logo majestic logo threadwatch logo seochat tools logo