title: C# Could not find the data provider. NET Framework requested
body: <p>Im using Visual Studio 2010 Ultimate, C# WPF, MVVM, Sqlite.</p>
  
  <p>I have this project that is running without problems (On Windows 8 x64, .NET Framework 4 Client Proile), but I get all this exceptions when run an installed application (On Windows 7 x32, .NET Framework 4 Client Proile):</p>
  
  <pre><code>Exception: System.Windows.Markup.XamlParseException: 'The invocation of the constructor of type' GestorDocument.UI.DeterminanteView 'that matches the specified binding constraints threw an exception.' (Line number: '3 ', line position '9'). ---&gt; System.ArgumentException: The specified store provider can not be found in the configuration or is not valid. ---&gt; System.ArgumentException: Could not find the data provider. NET Framework requested. It may not be installed.
    
  </code></pre>
  
  <p>This is my connection string:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
    &lt;connectionStrings&gt;
      &lt;add name="GestorDocumentEntities" connectionString="metadata=res://*/GestorDocument.csdl|res://*/GestorDocument.ssdl|res://*/GestorDocument.msl;provider=System.Data.SQLite;provider connection string=&amp;quot;data source=C:\SQLITE\BD\GestorDocument.s3db&amp;quot;" providerName="System.Data.EntityClient"/&gt;
    &lt;/connectionStrings&gt;  
  &lt;startup&gt;&lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/&gt;&lt;/startup&gt;&lt;/configuration&gt;
  </code></pre>
  
  <p>Please, Any idea?</p>
  
  <hr>
  
  <p><strong>Now it works!
  MY SOLUTION WAS:</strong></p>
  
  <p>App.config in your project:</p>
  
  <pre><code>    &lt;configuration&gt;  
  
    &lt;system.data&gt;
      &lt;DbProviderFactories&gt;
        &lt;remove invariant="System.Data.SQLite" /&gt;
        &lt;add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data Provider for SQLite"
             type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite, Version=1.0.85.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139" /&gt;
      &lt;/DbProviderFactories&gt;
    &lt;/system.data&gt;
  
  
        &lt;startup&gt;
          &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/&gt;
        &lt;/startup&gt;
      &lt;/configuration&gt;
  </code></pre>
  
  <p>Include a reference of: (version for the machine on which the application will be installed.) </p>
  
  <ul>
  <li>SQLite.Designer.dll</li>
  <li>System.Data.SQLite.dll</li>
  <li>System.Data.SQLite.Linq.dll</li>
  </ul>
  
  <p>Set "Copy local" property to True.</p>
  
  <p>Add in machine.config this line between system.data and DbProviderFactories</p>
  
  <pre><code>&lt;add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite, Version=1.0.85.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139" /&gt;
  </code></pre>
  
  <p>Ensure that the version of. NET Framework, which was developed the application, is installed on the test machine.</p>