IIS 6.0 / ASP issue

Posted on 2005-04-22
Last Modified: 2010-04-20
I have an  asp page that displays images that are located in a vitural directory.  This asp page worked spectacularly in IIS 5.0.  I am now using IIS 6.0 and the page loads in the browser, but the images do not display.  An x displays in the place of the pictures, however, if you check the properties of the x it displays the correct path.  Any ideas as to why this is happening?
Question by:QueenKretee
    LVL 95

    Expert Comment

    by:Lee W, MVP

    Also, just checking, did you enable ASP in IIS 6.0

    Author Comment

    I have enabled ASP in IIS and I'm pretty sure that my security configurations are correct.
    In a netshell, here's what the page does:
    Takes a parameter JobNumber
    From the JobNumber, the path is determined like "./Photos/"+JobNumber
    The number of .jpg files in the directory is counted
    A two column wide table is produced according to the number of photos
    The photos are displayed in the table

    Now, it's able to count the number of photos, create the table correctly, but the photos themselves don't appear in the table.  There are variable numbers of photos in each directory and the table is always produced correctly, yet the photos aren't displayed.  Like I said, this worked perfectly in IIS 5.0.  Any ideas?
    LVL 70

    Expert Comment

    by:Chris Dent

    You can't use path traversal by default in IIS6 (./Photos...). It will disallow the ".".

    I would advise you use correct paths relative to the web root.

    If that isn't an option parent paths can be enabled with:

    Properties for the Site (IIS Manager)
    Home Directory
    Configuration (Application)
    Enable Parent Paths

    But it should be noted that Parent Paths are disabled because they are not secure.

    LVL 1

    Accepted Solution

    Did you check the permissions for the image directory? You may have to allow view access to IIS_Anonymous or whatever account is used...

    Author Comment

    Brilliant, planza (yeah, why didn't I come up with that?)  Thank you.  Enjoy the points!
    LVL 1

    Expert Comment

    Glad to be able to help. I had fought with something similar a while back...

    Thanks for the points.

    Featured Post

    Network it in WD Red

    There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

    Join & Write a Comment

    Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
    If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now