Wrox Programmer Forums
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 5th, 2006, 06:11 PM
Authorized User
Join Date: Jan 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default File system Objects and IIS 6.0

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.
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
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
writing into a file in linux file system anboss XSLT 6 June 19th, 2008 01:56 PM
File system gandhi BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 2 March 22nd, 2006 05:23 PM
PHP File System Wylzn BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 July 7th, 2004 07:05 AM
System Objects in Jet Psionman Pro VB Databases 3 June 4th, 2004 08:00 AM
File System Object kumar_rajeshk Pro VB 6 7 April 28th, 2004 01:35 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.