title: SharePoint error: Web application at xxxx could not be found
body: <p>When I try to execute this code:</p>
  
  <pre><code>SPSite siteCollection = new SPSite(@"http://sp-devxxx:10000/");
  </code></pre>
  
  <p>It throws the following error:</p>
  
  <blockquote>
    <p>The Web application at
    <a href="http://sp-devxxx:10000" rel="noreferrer">http://sp-devxxx:10000</a> could not be
    found. Verify that you have typed the
    URL correctly. If the URL should be
    serving existing content, the system
    administrator may need to add a new
    request URL mapping to the intended
    application.</p>
  </blockquote>
  
  <p>I can hit this site from my web browser, it is compiling in x64, my account has read/write access to the content db, the code is running on the server that the site is running on and there exists an access mapping for this site.  Why would it be throwing this error?</p>