title: Provider: System.Data.SqlServerCe.3.5 is not installed
body: <p>Hi I am trying to use LINQ with SQL Server CE. I generated the dmbl file with SqlMetal, added it to the project, and also added a reference to assembly <code>System.Data.SqlServerCe.dll</code></p>
  
  <p>My app is WPF based on .NET4.0 and is built as x86.</p>
  
  <p>On my PC SQL Server CE is installed.</p>
  
  <p>I tried the following code:</p>
  
  <pre><code>const string connStr = @"Spiri_SQL_CE_DB.sdf";
  var dataContext = new Spiri_SQL_CE_DB(connStr);
  var testNicks = dataContext.TestNick;
  </code></pre>
  
  <p>But I get this error:</p>
  
  <blockquote>
    <p>Cannot open 'C:\Users\Jan\Documents\Visual Studio 2010\Projects\C#\Pokec_Messenger_Project\Pokec_Messenger\DB_TEST\Spiri_SQL_CE_DB.sdf'. Provider 'System.Data.SqlServerCe.3.5' not installed.</p>
  </blockquote>
  
  <p>What am I missing? A reference to some assembly, or something else?</p>
  
  <p><strong>IF I RETARGET APP ON .NET3.5 IT WORKS GOOD !</strong></p>