title: Web.Config, external file for system.serviceModel
body: <p>Using VS2010</p>
  
  <p>I have the following in my web.config (detail removed).</p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;behaviors /&gt;
      &lt;services /&gt;
      &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true"/&gt;
      &lt;bindings /&gt;
      &lt;client /&gt;
  &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>I would like to use attribute configSource the same as appSettings can use to get the detail of these elements from another config file.</p>
  
  <p>I have tried to apply configSource attribute to either system.serviceModel or to each of the sub nodes.
  However, I get the invalid blue wavvy line saying:</p>
  
  <pre><code>The 'configSource' attribute is not allowed
  </code></pre>
  
  <p>I refer to the second answer (by Tom Brothers) in this question which demonstrates what I would like.<br>
  <a href="https://stackoverflow.com/questions/2411184/can-a-web-config-read-from-an-external-xml-file">Can a web.config read from an external xml file?</a>    </p>
  
  <p><strong>Additional</strong><br>
  Here is the configuration from that post. Has invalid blue wavvy lines.</p>
  
  <pre><code>&lt;connectionStrings configSource="web\config\connectionStrings.config" /&gt; 
  &lt;appSettings configSource="web\config\appSettings.config" /&gt; 
  &lt;system.diagnostics configSource="web\config\diagnostics.config" /&gt; 
  &lt;system.serviceModel&gt; 
      &lt;bindings configSource="web\config\serviceModelBindings.config" /&gt; 
      &lt;behaviors configSource="web\config\serviceModelBehaviors.config" /&gt; 
      &lt;services configSource="web\config\serviceModelServices.config" /&gt; 
      &lt;client configSource="web\config\serviceModelClient.config" /&gt; 
  &lt;/system.serviceModel&gt; 
  </code></pre>
  
  <p>How can I use the configSource attibute in this case?</p>