title: SecurityException when loading an app with a WCF behaviorExtension in the app.config over the network
body: <p>I have an .NET 4 .exe (Winform Desktop app) to which I have added a WCF behaviorExtension. The app loads fine on the local machine, but throws a SecurityException when loaded across the network. If I omit the setMaxFaultSizeBehavior behaviorExtension then I can load the app over the network. I would appreciate any information that could help get this working. I have confirmed that the files are not blocked, and the assembly name is an exact match, including spaces.</p>
  
  <p>The relevant part of the app.config looks like this (I shortened the type name and assembly name, in the actual config file, I use the full namespace and assembly name):</p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;bindings configSource="bindings.config" /&gt;
      &lt;client configSource="clients.config" /&gt;
      &lt;extensions&gt;
        &lt;behaviorExtensions&gt;
          &lt;add name="setMaxFaultSizeBehavior" type="SetMaxFaultSizeBehavior, BehaviorAssembly, Version=1.8.0.0, Culture=neutral, PublicKeyToken=41b332442f1101cc" /&gt;
        &lt;/behaviorExtensions&gt;
      &lt;/extensions&gt;
      &lt;behaviors&gt;
        &lt;endpointBehaviors&gt;
         &lt;behavior name="LargeQuotaBehavior"&gt;
            &lt;dataContractSerializer maxItemsInObjectGraph="2147483600" /&gt;
            &lt;setMaxFaultSizeBehavior /&gt;
         &lt;/behavior&gt;
        &lt;/endpointBehaviors&gt;
      &lt;/behaviors&gt;
  </code></pre>
  
  <p></p>
  
  <p>The exception I get when running over the network is :</p>
  
  <pre><code>An error occurred creating the configuration section handler for system.serviceModel/behaviors: Request failed. (\\server\Share\app.exe.Config line 22)
  Exception Type: System.Configuration.ConfigurationErrorsException
  Source: System.Configuration
  </code></pre>
  
  <p>With an Inner Exception of 
      System.Security.SecurityException</p>