title: Detect proxy settings of default web browser
body: <p>MSDN sample</p>
  
  <pre><code>HttpWebRequest myWebRequest=(HttpWebRequest)WebRequest.Create("http://www.microsoft.com");
  WebProxy myProxy=new WebProxy();
  // Obtain the 'Proxy' of the  Default browser.  
  myProxy=(WebProxy)myWebRequest.Proxy;
  </code></pre>
  
  <p>Doesn't work.
  The error I get is: Unable to cast object of type 'WebProxyWrapper' to type 'System.Net.WebProxy'</p>
  
  <p>What options do I have?</p>