title: IIS 7 Invalid Application Path, Win 7
body: <p>Getting "Invalid Application Path" error. Here are the steps I've taken.</p>
  
  <ol>
  <li><p>Right click on web site's root folder. Click "Add Virtual Directory".</p></li>
  <li><p>In window that opens, set alias to name of sub folder. WS</p></li>
  <li><p>Use browse button to navigate and set path to physical folder on drive. Click OK</p></li>
  <li><p>Click "Test Settings..." Pass-through authentication passes. But get warning that path cannot be verified. This looks to be normal.</p>
  
  <p>Click OK. And "WS" folder is now set as a virtual directory. (If I click "Basic Settings..." and test settings, still get above results.</p></li>
  <li><p>Right click folder. Select "Convert to Application". Leave all default values as they are. Click "Test Settings" and I get the error about invalid path. (This is with "Pass-through" authentication.)</p></li>
  <li><p>Connect as "Specific User" and this time, "Test Settings..." does not report any errors. Additionally the path is indicated as being "accessible".</p></li>
  </ol>
  
  <p>So, the question is, why does "Pass Through" authentication not work?</p>
  
  <p>Now, note that if I continue on and click OK to convert the virtual folder to an application, no error is raised. And I can run the web service (this is using pass-through authentication option for application).</p>
  
  <p>So, what's the problem. Well, when I add the website to a VS 2008 solution, and try to build the website (I need to debug the web service). I get this error:</p>
  
  <blockquote>
    <p>It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.</p>
  </blockquote>
  
  <p>But, the folder is an application. I just converted it. And, the web service runs just fine on the local host.</p>
  
  <p>What details am I missing?</p>
  
  <p>(In researching these problems, I did find out that multiple web.config files can cause the error of the site not building. I do not have multiple web.config files.)</p>