title: Simulating Shared Hosting Trust Levels
body: <p>I want to simulate the trust levels of a shared hosting environment on my development machine so that there are no nasty surprises when I come to deploy my solution.</p>
  
  <p>I added this my setting the web.config:</p>
  
  <pre><code>&lt;trust level="Medium" originUrl="*"/&gt;
  </code></pre>
  
  <p>The only problem with this is that I'm getting this exception when I try to save to  my database:</p>
  
  <blockquote>
    <p>InnerException:
    System.Security.SecurityException
           Message="Request for the permission of type
    'System.Net.SocketPermission, System,
    Version=2.0.0.0, Culture=neutral,
    PublicKeyToken=b77a5c561934e089'
    failed."
           Source="mscorlib"</p>
  </blockquote>
  
  <p>How do I specifically allow this while still maintaining medium 'like' trust. Are there other things I can resonably allow?. Ill be hosting on GoDaddy.</p>