title: WebRequest System.NotSupportedException
body: <p>Wrote this in monodevelop:</p>
  
  <pre><code>using System;
  using System.Net;
  using System.Net.Http;
  
  namespace Hello
  {
      public class Hello
      {
          public Hello () {}
  
          public static WebResponse world(string symbol) {
              WebRequest request = WebRequest.Create("http://yahoo.com");
              WebResponse response = request.GetResponse ();
          }
      }
  }
  </code></pre>
  
  <p>Getting this exception where running:</p>
  
  <blockquote>
    <p>Unhandled Exception:
    System.NotSupportedException: <a href="http://yahoo.com/" rel="nofollow">http://yahoo.com/</a>
      at System.Net.WebRequest.GetCreator (System.String prefix) [0x00000] in :0 
      at System.Net.WebRequest.Create (System.Uri requestUri) [0x00000] in :0 
      at System.Net.WebRequest.Create (System.String requestUriString) [0x00000] in :0 
      at CNBC.Research.LookupUtil.downloadStockHistory (System.String symbol) [0x00000] in :0 
      at CNBC.MainClass.Main (System.String[] args) [0x00000] in :0 
    [ERROR] FATAL UNHANDLED EXCEPTION: System.NotSupportedException: <a href="http://yahoo.com/" rel="nofollow">http://yahoo.com/</a>
      at System.Net.WebRequest.GetCreator (System.String prefix) [0x00000] in :0 
      at System.Net.WebRequest.Create (System.Uri requestUri) [0x00000] in :0 
      at System.Net.WebRequest.Create (System.String requestUriString) [0x00000] in :0 
      at CNBC.Research.Hello.world (System.String symbol) [0x00000] in :0 
      at CNBC.MainClass.Main (System.String[] args) [0x00000] in :0</p>
  </blockquote>
  
  <p>I believe it's because it doesn't know what <code>http</code> is but I don't know how to add it. </p>
  
  <p>EDIT:</p>
  
  <p>This may shed light on the problem. It may be because I'm running the wrong version? I also am getting this error:</p>
  
  <blockquote>
    <p>WARNING: The runtime version supported by this application is unavailable.
    Using default runtime: v4.0.30319</p>
  </blockquote>
  
  <p>Should I be running version 3.5 for .NET 3.5?</p>