title: Error on <serviceHostingEnvironment multipleSiteBindingsEnabled="true"/> while publish on IIS
body: <p>I have one test wcf service with default methods and web config is :</p>
  
  <pre><code> &lt;system.web&gt;
      &lt;compilation debug="true" targetFramework="4.0"/&gt;
  &lt;/system.web&gt;
  &lt;system.serviceModel&gt;
      &lt;behaviors&gt;
          &lt;serviceBehaviors&gt;
              &lt;behavior&gt;
                  &lt;!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --&gt;
                  &lt;serviceMetadata httpGetEnabled="true"/&gt;
                  &lt;!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information --&gt;
                  &lt;serviceDebug includeExceptionDetailInFaults="false"/&gt;
              &lt;/behavior&gt;
          &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
  &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true"/&gt;
  &lt;/system.serviceModel&gt;
  &lt;system.webServer&gt;
      &lt;modules runAllManagedModulesForAllRequests="true"/&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p></p>
  
  <p>on local IIS it works fine when i publish it.But when i try to publish on remote IIS i am getting this error :</p>
  
  <blockquote>
    <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>
  
  <pre><code>Line 23:       &lt;/service&gt;
  Line 24:     &lt;/services&gt;
  **Line 25:        &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true"/&gt;**
  Line 26:  &lt;/system.serviceModel&gt;
  Line 27:  &lt;system.webServer&gt;
  </code></pre>
  </blockquote>
  
  <p>thanks in advance.</p>