title: Ria Service Generated Code Not Accessible in Silverlight Code
body: <p>I have the following Ria Service define:</p>
  
  <pre><code>namespace SilverlightTest.Web
  {
      [EnableClientAccess()]
      public class ContactService : LinqToEntitiesDomainService&lt;AdventureWorksEntities&gt;
      {
          public IQueryable&lt;Contact&gt; GetContactSearch(string lastName)
          {
              ContactRepository rep = new ContactRepository();
              return rep.SearchByLastName(lastName);
          }
      }
  }
  </code></pre>
  
  <p>When I compile the solution, my SilverlightTest project does create the SilverlightTest.Web.g.cs file and the appropriate Context objects are created when I look at it.  However, when I attempt to import the SilverlightTest.Web namespace to access the Data Context class for the above service, it says it cannot find the Web namespace.</p>
  
  <p>The only difference I can see between what I'm doing and many examples that are out there on the web is that my AdventureWorksEntities data context is located in a separate business object dll.  I tried to query the context directly instead of using the Repository Pattern I'm attempting to do and it also isn't work working.</p>
  
  <p>Any ideas?  Is it possible to have Ria Services access a separate DLL handling data access or does it HAVE to be in the same project?</p>