title: Can’t access an aspx page via IIS
body: <p>I’m running IIS 5 on Windows XP professional</p>
  
  <p><br /></p>
  
  <p>I created new Web project and configured VS 2008 to save this application to 
  location c:\Inteput\wwwroot. Thus VS saved the project into directory: </p>
  
  <pre><code>c:\Inteput\wwwroot\WebApplication1
  </code></pre>
  
  <p><br />
  I then transformed this WebApplication1 folder into virtual directory (this virtual directory is also configured as web application). But whenever I try to access: </p>
  
  <pre><code>c:\Inteput\wwwroot\WebApplication1\WebApplication1\default.aspx
  </code></pre>
  
  <p>through browser using URL: </p>
  
  <pre><code>http://localhost/WebApplication1/WebApplication1/default.aspx
  </code></pre>
  
  <p>, I get an exception saying: </p>
  
  <blockquote>
    <p>Configuration Error 
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. </p>
    
    <p>Parser Error Message: 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><br /></p>
  
  <p>Any ideas what I'm doing wrong?</p>
  
  <p>BTW - Virtual directory does have <em>Read</em> and <em>Run scripts</em> permissions set
  <br /><br /></p>
  
  <p>Q2 - How do I configure Visual studio to run Web app via IIS and not via integrated web server? Thus so that when I’d press CTRL+F5, the browser would be server a page by IIS and not by integrated web server?
  <br /><br /></p>
  
  <p>thank you</p>