title: Sharepoint SPSite
body: <p>I am trying to create a spsite of object for sharepoint search but i am getting exception in production as website not found</p>
  
  <pre><code>SPSite site = new SPSite("sitename");
  ServerContext scon = ServerContext.GetContext(site);
  SearchContext srchcontext = SearchContext.GetContext(scon);
  Scopes sc = new Scopes(srchcontext);
  </code></pre>
  
  <p>It throws exception site not found i have checked the name of site it exixts.</p>
  
  <p>Any Help??</p>