title: Asp.net Web Application Publish
body: <p>I am new to asp.net and failed to publish my web application on local host.
  I develop my application on D:/learning/MyWebApp/<em>.</em>;</p>
  
  <p>And it works quite well.</p>
  
  <p>Then I created a new folder <strong>imct</strong>, the location is C:\inetpub\wwwroot\imct\</p>
  
  <p><strong>File System</strong> methond selected and Successfully published.</p>
  
  <p>But I can't open my app from <a href="http://localhost/imct/" rel="nofollow">http://localhost/imct/</a></p>
  
  <blockquote>
    <h2>> Server Error in '/' Application.</h2>
    
    <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>
    
    <p>Source Error: </p>
    
    <p>Line 16:      Line
    17:  Line 18:      Line 19:        Line 20:<br>
      </p>
    
    <p>Source File: C:\inetpub\wwwroot\imct\web.config    Line: 18</p>
    
    <p>Show Additional Configuration Errors:</p>
    
    <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. (C:\inetpub\wwwroot\imct\web.config line 22) </p>
    
    <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. (C:\inetpub\wwwroot\imct\web.config line 32) </p>
    
    <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. (C:\inetpub\wwwroot\imct\web.config line 39)</p>
  </blockquote>
  
  <p>Is there anything wrong? Appreciated for your replies.</p>