C# Failed to find or load the registered .Net Data Provider error

后端 未结 4 1346
Happy的楠姐
Happy的楠姐 2020-12-18 14:29

I am using SQLite and the wrapper from http://sqlite.phxsoftware.com/ and when I add a data source to my project I get the error:

\"Some updating commands could not

相关标签:
4条回答
  • 2020-12-18 14:42

    You don't need visual C++ 2010...!!! Only copy "msvcr100.dll" in release folder...

    The "System.Data.SQLite.dll" needs "msvcr100.dll"

    0 讨论(0)
  • 2020-12-18 14:49

    Can you add a direct reference to System.Data.SQLite in your application and instantiate SQLiteFactory?

    We use SQLite with the dll directly in our app's bin director (not the GAC) and have this line in our Web/App.config so we're not relying on Machine.config (eases deployment).

    <system.data>
        <DbProviderFactories>
            <add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite"/>
        </DbProviderFactories>
    </system.data>
    
    0 讨论(0)
  • 2020-12-18 14:53

    I assume you are using VS 2008. Check the Framework version you are building towards.

    0 讨论(0)
  • 2020-12-18 14:55

    This can also occur if the computer doesn't have the Microsoft Visual C++ 2010 installed

    0 讨论(0)
提交回复
热议问题