February 5th, 2013, 08:00 AM
System.io.file.exsists & mapped drive
I'm trying to check if a file exists in a mapped folder.
Web server 2008 R2
If IO.File.Exists(PhysicalLocation) Then
blnExists = True
blnExists = False
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?
February 5th, 2013, 08:10 AM
I have given IUSR and IIS_IUSRS read/write permissions on the folder and it's still not working
February 5th, 2013, 10:34 AM
if you just check for file it is not permissions...
Check value of PhysicalLocation ...
if you found this post is useful click Give Rep button (bottom side on this reply ) and agree
February 5th, 2013, 10:37 AM
Hi Yes done that the file opens up in explorer...
February 7th, 2013, 07:23 AM
In case anyone else has this problem we used UNC instead of mapped drive