title: How do you configure Web Proxies when using SSL locally with IIS Express?
body: <p>I recently followed <a href="http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx" rel="nofollow">Scott Hansleman's instructions on setting up SSL locally</a> using IIS Express for my Azure Web App. That seemed to work fine (was able to access pages that required SSL) until I got to a page that queries out to Table Storage. It threw the following:</p>
  
  <blockquote>
    <p>Error creating the Web Proxy specified in the
    'system.net/defaultProxy' configuration section.</p>
  </blockquote>
  
  <p>So I added this to my web.config:</p>
  
  <pre><code>    &lt;defaultProxy&gt;
          &lt;proxy usesystemdefault="False"/&gt;
      &lt;/defaultProxy&gt;
  </code></pre>
  
  <p>Now it throws a different error on the same line:</p>
  
  <blockquote>
    <p>The type initializer for 'System.Net.ServicePointManager' threw an
    exception.</p>
  </blockquote>
  
  <p>Drilling down in to that it references line 29 of my web.config and says:</p>
  
  <blockquote>
    <p>Required attribute 'type' not found.</p>
  </blockquote>
  
  <p>However, line 29 doesn't seem to make any sense to me. Here is the relevant section:</p>
  
  <pre><code>25 &lt;system.diagnostics&gt;
  26        &lt;trace&gt;
  27            &lt;listeners&gt;
  28              &lt;add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics"&gt;
  29                   &lt;filter /&gt;
  30                &lt;/add&gt;
  31            &lt;/listeners&gt;
  32        &lt;/trace&gt;
  33    &lt;/system.diagnostics&gt;
  </code></pre>
  
  <p>I thought maybe the problem was in the IIS applicationhost.config, which if I open in VS gives me a bunch of errors for missing elements but I think it's not using the right schema because I can't find any documentation that says those elements (mostly configSection elements) even have those properties.</p>
  
  <p>This is a bit out of my element and I'm not having much luck searching. </p>