Using Entity Framework with an SQL Compact Private Installation

后端 未结 5 1799
南旧
南旧 2020-11-28 21:53

I am using Entity Framework 4 in a desktop application with SQL Compact. I want to use a private installation of SQL Compact with my application, so that my install

5条回答
  •  孤城傲影
    2020-11-28 22:37

    Being stuck with the same problem,

    "the specified store provider cannot be found in the configuration or is not valid."

    I came around this post. I tried almost everything. I had installed "System.Data.SqlServerCe" using nugets.

    So i already had below line of code added in my web.config

    
      
      
      
      
    
    

    Still the error continued..

    I got rid of problem by uncommenting the last two commented lines in above code...so now it becomes

    
      
      
      
      
    
    

    Hope it helps.. Thanks.

提交回复
热议问题