Create a folder that links to UNC path

Posted on 2011-10-05
Last Modified: 2012-05-12
I have a web farm app.  Within this web app is a very large photo archive.  I would like to share this archive with another web app.

I don't want to have to keep duplicate copies of the archive under the web root folder for each app.  How can I set this up so that I can have a folder on the file server that will deliver the same file to both and

Hope that makes sense.

Thanks for your help
Question by:dbashley1
    LVL 30

    Expert Comment

    by:Brad Howe
    Simple enough for you.

    You need to create a virtual directory on both webapps called /photos which inturn is a UNC PATH (\\FILESERVER\SHARENAME\photos) to your content.

    Here is how to create them in IIS6 and IIS7.

    IIS6  -

    IIS7 -

    Let us know if you have any issues.
    LVL 30

    Accepted Solution

    Hi There,

    Just re-read those articles and really don't like them to much. I think i blog this :)

    Here is the Coles note version.

    1. Create a CONNECT AS Account that has access to the share.
    2. Create the share with the permissions you require. Make sure you test it \\server\....

    Virtual Path Network Shared content for IIS6
    3. Open IIS Manager.
    4. Right click on your site, New, Virtual Directory
    5. Alias = photos
    6. Path = \\FILESERVER\SHARENAME\photos
    7. Uncheck (alwaysuse authenticated users creds)
    8. Enter User name : DOMAIN\USER.NAME and Password x2
    9. Grant Read Access.
    10. NEXT and FINISH

    Virtual Path Network Shared content for IIS7
    3. Open IIS Manager.
    4. Right click on your site and click Add Application.
    5. Alias = photos     -     Application Pool=Your Default one for the site is fine.
    6. Path = \\FILESERVER\SHARENAME\photos
    7. Click CONNECT AS followed by clicking SPECIFIC USER:
    8. Click SET, Enter User name : DOMAIN\USER.NAME and Password x2
    9. Click OK
    10. Click TEST SETTINGS. Should see green checks for all access.
    11. OK

    Test :

    LVL 30

    Expert Comment

    by:Brad Howe
    And more point. The reason the virtual path for IIS7 is an APPLICATION and not a virtual directory is because of the IIS managed pipeline.

    IF you are running an app with an application Pool in Integrated mode, you will given HTTP error 500.19. This is why you need to make it an application or else it complains about not being able to read/write a web.config. Even if it exists the error appears.

    IF you are running an app with an application Pool in Classic mode, you will get the image without issue.

    Hope it helps,


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
    When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    737 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

    15 Experts available now in Live!

    Get 1:1 Help Now