in

System.Data.SQLite

An open-source, enhanced version of the SQLite database engine for Windows

installing into the GAC

Last post 11-28-2007 8:35 AM by Robert Simpson. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 11-19-2007 11:26 PM

    • pkz
    • Top 200 Contributor
    • Joined on 10-25-2007
    • Posts 5

    installing into the GAC

    I've got C#Express building my app w/ the System.Data.SQLite file referenced and set to Publish as Include (Auto).

    But the install does not install the dll into the GAC.

     Ideas?

    Pete

     

    Filed under: , , , ,
  • 11-26-2007 10:22 AM In reply to

    Re: installing into the GAC

    Is it supposed to?  The SQLite library doesn't need to be there ... any particular reason you want it in the gac?

     

  • 11-26-2007 9:12 PM In reply to

    • pkz
    • Top 200 Contributor
    • Joined on 10-25-2007
    • Posts 5

    Re: installing into the GAC

    I figured out the problem. The example code I was using was:

    DbProviderFactory factory = DbProviderFactories.GetFactory( "System.Data.SQLite");

    On a clean PC, the machine.config did not have the proper entry for DBProviderFactories

     and thus I was getting a Data Provider not found error forcing me to think I needed to install it in the GAC.

    So, I changed the code  to simply:

    SQLiteConnection DBConnection = new SQLiteConnection(connectionString);

     Now, it works w/o any thing special during the install...just copy the files.

     Pete

  • 11-28-2007 8:35 AM In reply to

    Re: installing into the GAC

    Read the helpfile too.  You can provide a config file with your application with the necessary information to allow your app to use DbProviderFactories as well, and it will not use the GAC or the machine.config.

    Robert

     

Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems