title: Error occurred during the processing of a configuration file required to service this request
body: <p>I have copied a client's web application to my <code>C:\inetpub\wwwroot</code>. </p>
  
  <p>I aslo run Aspnet_regiis.exe -i to solve a previous error I was having</p>
  
  <p>Now I have this error:</p>
  
  <p>Configuration Error</p>
  
  <p>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>
  
  <p>Source Error: </p>
  
  <pre><code>Line 31:     
  Line 32:     &lt;compilation debug="true" targetFramework="4.0" /&gt;
  Line 33:     &lt;authentication mode="Forms"&gt;
  Line 34:       &lt;forms loginUrl="~/Default.aspx" timeout="2880" /&gt;
  Line 35:     &lt;/authentication&gt;
  </code></pre>
  
  <p>Source File: C:\inetpub\wwwroot\site\web.config    Line: 33 </p>
  
  <p>Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408 </p>
  
  <p>I have tried to run the application: <code>http://localhost/site/Default.aspx</code>. How do I fix the error?</p>