title: The type or namespace name 'Linq' does not exist in the namespace 'System.Data' , etc
body: <p>I just made a Linq-to-SQL .dbml file in Visual Studio 2010.</p>
  
  <p>I'm getting the following 2 errors, a total of 60 times in total, mostly the first.</p>
  
  <ol>
  <li>The type or namespace name 'Linq'
  does not exist in the namespace 'System.Data'</li>
  <li>The type or namespace
  name 'EntitySet' could not be found</li>
  </ol>
  
  <p>I've found various similar questions here and on other sites, all of which seem to say that some extra assembly needs to be added.</p>
  
  <p>I've added every one suggested, the problem persists. Another odd thing is that VS2010 itself doesn't underline the errors in the editor screen, but it does show them in the error log.</p>
  
  <p>Anyways, I've seen all the existing topics and applied their solutions, the problem persists.</p>
  
  <p>Some technical details:</p>
  
  <ul>
  <li>I'm running Windows 7 32-bit.</li>
  <li>I still have Visual Studio 2008 SP1
  installed. I just installed VS2010
  when it came out and didn't remove
  the older one.</li>
  <li>I'm running MSSQL server 2008 R2.</li>
  </ul>
  
  <p>And here's the assemblies listed in my web.config file:</p>
  
  <pre><code>&lt;add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
  &lt;add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
  &lt;add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
  &lt;add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
  &lt;add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
  &lt;add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
  &lt;add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
  &lt;add assembly="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
  &lt;add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
  &lt;add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/&gt;
  &lt;add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
  &lt;add assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
  &lt;add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
  &lt;add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
  &lt;add assembly="System.Data.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
  &lt;add assembly="System.Data.Services.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
  &lt;add assembly="System.Data.Services.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
  &lt;add assembly="System.Data.SqlXml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
  </code></pre>