Previous Next

Thread: IIS 6 / Virtual Directory / UNC Path / Write Failure

Last post 08-20-2008 4:49 PM by KCRick. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 08-19-2008, 11:47 AM

    • KCRick
    • Not Ranked
    • Joined on 03-05-2007, 5:50 PM
    • Posts 2

    IIS 6 / Virtual Directory / UNC Path / Write Failure

    We use a third party CMS that claims to provide a load balancing configuration where the end users can edit markup, upload images, etc. to modify the contents of their websites.  We are preparing to offer this load balancing/fail over configuration as an option. 

     As a proof of concept I have to configure this CMS to accomplish this feat.  The configuration of the CMS requires that a Virtual Directory be created with write privileges in each node with the same name, but the VD path must be a UNC path the to other nodes local directory.

    Everything is working except for the last step, where the CMS tries to write a file to the other node.  The only thing that isn't happening is the actual writing of the file, it fails.  I've tried various configurations of the "connect to" properties, what identity the app pool process w3wp.exe runs as, with different administrative accounts and just can't seem to get a file written from a virtual directory in one website to appear in the local file system of the other website.

    I vaguely remember doing this for a previous project years ago and I think it might involve going into the Component Services, COM+, IIS Out of Process (blah blah blah) settings, and making some changes in the security tabs or "run as" prompties there, but I'm not sure and I can't waste of lot of time with trial and error.

    Can anyone point me to the documentation that can get a virtual directory configured with write privileges to a UNC path?  I have a Safari O'Reilly account so I have access to a lot of MS Press books, O'Reilly books, etc.

    Thanks in advance...

  • 08-19-2008, 10:34 PM In reply to

    Re: IIS 6 / Virtual Directory / UNC Path / Write Failure

    Here is probably the best article for learning this.

    http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/webapp/iis/remstorg.mspx

    I wrote a brief article that I refer to from time to time.  From what you are describing, it could be related to CASPOL (code access policy / security).

    http://www.iislogs.com/articles/23/

    Hope this helps.

    Steve Schofield
    Windows Server MVP - IIS
    http://weblogs.asp.net/steveschofield

    http://www.IISLogs.com
    Log archival solution
    Install, Configure, Forget
  • 08-20-2008, 4:49 PM In reply to

    • KCRick
    • Not Ranked
    • Joined on 03-05-2007, 5:50 PM
    • Posts 2

    Re: IIS 6 / Virtual Directory / UNC Path / Write Failure

    Thanks for the tip.  I contacted the CMS vendor's support and with their help determined the solution was changing the anonymous user account from the default IUSR_... to a local or domain account then setting the privileges in the share's permissions AND security dialogs for that local or domain account.

Page 1 of 1 (3 items)
Page view counter