Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I am using entity framework with Sqlite,
In making a new object from my Entities, i got an Argument Exception that says "The specified store provider cannot be found in the configuration, or is not valid".
The error occurs in entity class constructor.
Any suggestion and helps are appreciated ;)
Thank you
Posted

Add this code to your solution:
XML
<system.data>
    <dbproviderfactories>
      <remove invariant="System.Data.SQLite" />
      <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.88.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139" />
    </add></dbproviderfactories>
  </system.data>
 
Share this answer
 
Comments
ali sedighian 11-Sep-13 5:50am    
Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900