title: .Net 4 CAS - Request for the permission of type 'System.Net.WebPermission, System, Version=4.0.0.0, Action: Demand
body: <p>My build server runs a SpecFlow acceptance test DLL through Gallio.</p>
  
  <p>This calls a WCF service and performs our acceptance tests.</p>
  
  <p>Running locally works fine.</p>
  
  <p>However on the build server (even with Cruise Control running under my account)</p>
  
  <p>I keep getting </p>
  
  <p>System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
  Action: Demand</p>
  
  <p>This build server is running .Net 4.</p>
  
  <p>Is there anyway to switch CAS off?</p>
  
  <p>Thanks</p>