title: The configuration section 'system.serviceModel' cannot be read because it is missing a section declaration
body: <p>We already created an webservice in Visual Studio 2013 with .Net 4.5. This webservice runs well local in the same computer. </p>
  
  <p>Right now we want to export this webservice to an Windows Server 2008 with IIS. We already made an webservice running in port 8080. </p>
  
  <p>But when we copy the exported files to the root directory of this webserver the folowwing error occured:</p>
  
  <pre><code>Error Summary 
  HTTP Error 500.19 - Internal Server Error
  
  The requested page cannot be accessed because the related configuration data for the page is invalid.
  
  
  Detailed Error Information 
  
  
  Module
  IIS Web Core 
  
  Notification
  Unknown 
  
  Handler
  Not yet determined 
  
  Error Code
  0x80070032 
  
  Config Error
  The configuration section 'system.serviceModel' cannot be read because it is missing a section declaration  
  
  Config File
  \\?\C:\inetpub\wwwroot\YOR24Websevices\web.config 
  
  Requested URL
  http://localhost:8080/ 
  
  Physical Path
  
  
  Logon Method
  Not yet determined 
  
  Logon User
  Not yet determined 
  
  
  Config Source    10:   &lt;/system.web&gt;
     11:   &lt;system.serviceModel&gt;
     12:     &lt;bindings&gt;
  </code></pre>
  
  <p>The webconfig we exported in Visual studio is:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
  
    &lt;appSettings&gt;
      &lt;add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /&gt;
    &lt;/appSettings&gt;
    &lt;system.web&gt;
      &lt;compilation targetFramework="4.5" /&gt;
      &lt;httpRuntime targetFramework="4.5"/&gt;
    &lt;/system.web&gt;
    &lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;customBinding&gt;
          &lt;binding name="RightNowSyncBinding"&gt;
              &lt;security defaultAlgorithmSuite="Default" authenticationMode="UserNameOverTransport"
              requireDerivedKeys="true" securityHeaderLayout="Lax" includeTimestamp="false"&gt;
              &lt;localClientSettings detectReplays="false" /&gt;
              &lt;localServiceSettings detectReplays="false" /&gt;
            &lt;/security&gt;
            &lt;textMessageEncoding messageVersion="Soap12" /&gt;
            &lt;httpsTransport /&gt;
          &lt;/binding&gt;
        &lt;/customBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;
        &lt;endpoint address="https://tkbc-fleetsupport--tst.custhelp.com/cgi-bin/tkbc-fleetsupport--tst.cfg/services/soap"
          binding="customBinding" bindingConfiguration="RightNowSyncBinding"
          contract="RightNowServiceReference.RightNowSyncPort" name="RightNowSyncPort" /&gt;
      &lt;/client&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior&gt;
            &lt;!-- To avoid disclosing metadata information, set the values below to false before deployment --&gt;
            &lt;serviceMetadata httpGetEnabled="true" httpsGetEnabled="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;services&gt;
        &lt;service name="Yor24Service.Service"&gt;
          &lt;endpoint address="" contract="Yor24Service.IService" binding="basicHttpBinding"/&gt;
          &lt;endpoint address="mex" contract="IMetadataExchange" binding="mexHttpBinding"/&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;protocolMapping&gt;
          &lt;add binding="basicHttpBinding" scheme="http" /&gt;
      &lt;/protocolMapping&gt;    
      &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /&gt;
    &lt;/system.serviceModel&gt;
    &lt;system.webServer&gt;
      &lt;modules runAllManagedModulesForAllRequests="true"/&gt;
      &lt;!--
          To browse web app root directory during debugging, set the value below to true.
          Set to false before deployment to avoid disclosing web app folder information.
        --&gt;
      &lt;directoryBrowse enabled="true"/&gt;
    &lt;/system.webServer&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>What is the problem with this generated config file?</p>