Hi Guys-
I mapped a virtual Directory in IIS 6.0 to a networked directory. I called the virtual directory media. I can access this directory from my site as expected by typing
www.mydomain.com/media and it pulls up fine. However, when i try to check for files that exist in asp on the directory it does not find them? I have included my code below which works fine on the main server. However the networked server it wont pull up? any help is appreciated.
Code:
ThumbSrc = "/images/nophoto.gif"
if objFileSystem.FileExists(Server.MapPath("/media/listing-thumb/" & rsListings("ListingID") & ".jpg")) then
ThumbSrc = "/media/listing-thumb/" & rsListings("ListingID") & ".jpg"
elseif(not IsNull(rsListings("MLSTableID")) and rsListings("MLSTableID") <> "") then
fValidListingNumber = true
for a = 1 to Len(rsListings("ListingNumber"))
if InStr("0123456789-", Mid(rsListings("ListingNumber"), a, 1)) = 0 then fValidListingNumber = false
next
if(fValidListingNumber and objFileSystem.FileExists(Server.MapPath("/media/mls-thumb/" & rsListings("MLSTableID") & "/" & rsListings("ListingNumber") & ".jpg")))then ThumbSrc = "/media/mls-thumb/" & rsListings("MLSTableID") & "/" & rsListings("ListingNumber") & ".jpg"
end if