title: IIS 7.5 - Setting up a Virtual Directory for a file share on another domain
body: <p>I have a Windows 2008 R2 server running IIS 7.5.  I'd like to set up a virtual directory for my website to allow the download of video files from a file share on a server in another domain.  I have a domain username and password that allows me to access this file share.  However, when I try to setup the virtual directory in IIS, I get the following error message:</p>
  
  <blockquote>
    <h2>HTTP Error 500.19 - Internal Server Error</h2>
    
    <p>The requested page cannot be accessed because the related configuration data for the     page is invalid.</p>
    
    <ul>
    <li><strong>Module:</strong> IIS Web Core</li>
    <li><strong>Notification:</strong> <code>BeginRequest</code></li>
    <li><strong>Handler:</strong> Not yet determined</li>
    <li><strong>Error Code:</strong> <code>0x8007052e</code></li>
    <li><strong>Config Error:</strong> Cannot read configuration file </li>
    <li><strong>Config File:</strong> <code>\\?\UNC\z27ar1cfvs004.abc.se\video$\web.config</code></li>
    <li><strong>Requested URL:</strong> <a href="http://localhost:8080/Video" rel="nofollow noreferrer">http://localhost:8080/Video</a></li>
    <li><strong>Physical Path:</strong> <code>\\z27ar1cfvs004.abc.se\video$</code></li>
    <li><strong>Logon Method:</strong> Not yet determined</li>
    <li><strong>Logon User:</strong> Not yet determined</li>
    </ul>
  </blockquote>
  
  <p>Weirdly, I can hit Explore on my virtual directory and IIS will launch Explorer showing me the files.  </p>
  
  <p>For my site's authentication settings I have Basic and Windows authentication settings enabled.</p>
  
  <p>Here are the things I've tried unsuccessfully:</p>
  
  <ul>
  <li>Changing the Connect As... user for the site to use the domain user credentials</li>
  <li>Changing the Connect As... user for the virtual directory to use the domain user credentials</li>
  <li>Changing the Application Pool identity for the website to use the domain user account credentials</li>
  <li>Creating a local user account on the IIS server with the same username/password as on the domain server, and trying all 3 steps above again but only specifying the username rather than domain\username</li>
  <li>Changing the Managed Pipeline Mode: neither Integrated nor Classic makes any difference</li>
  </ul>
  
  <p>I've Googled until my eyes have gone blurry and spent hours trying many recommended suggestions but all to no avail.</p>
  
  <p>How can I solve this problem?</p>