Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old March 5th, 2006, 05:11 PM
Authorized User
Join Date: Jan 2006
Location: , , .
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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 04: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

All times are GMT -4. The time now is 05:33 PM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.