title: Log in to CRM from ASP.NET
body: <p>I'm writing an application in which I have to log on to a CRM 2011 server from ASP.NET code.  I quickly found this article:</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/cc156363.aspx">http://msdn.microsoft.com/en-us/library/cc156363.aspx</a></p>
  
  <p>The problem I'm having is in this bit of code from that article:</p>
  
  <pre><code>//Create the Service
  CrmService service = new CrmService();
  service.Credentials = System.Net.CredentialCache.DefaultCredentials;
  service.CrmAuthenticationTokenValue = token;
  service.Url = crmurl;
  </code></pre>
  
  <p>Visual Studio can't resolve CrmService.  So I tried to add a web reference to this project and point the web reference at the CRM service I'm using.  The URL I'm getting from Settings->Customizations in CRM, and I'm using the Organization Service endpoint.  However, after I add that reference CrmService is still unresolvable.  What am I doing wrong?</p>