Thank you for the suggestion. There are 2 issues:

1: I tried:

Assembly SampleAssembly = Assembly.Load("System.Data.SQLite, Version=1.0.92.0, 
Culture=neutral, PublicKeyToken=db937bc2d44ff139")

The assembly loads, but I couldn't figure out how to use it. None of the SQLite 
classes are in SampleAssembly, just a handful of things that have nothing to do 
with SQLite. Please forgive my .NET ignorance; I don't have a lot of experience 
with it.


2: This is all for naught anyway because when I transfer my program to the 
network the assembly won't load at all ("Unverifiable code failed policy 
check"). I'm not the only one with this problem:
http://www.codeproject.com/Questions/428056/Exception-Details-System-IO-FileLoadException-Unve


So, it looks like I'm stuck using the GAC and having to install SQLite in every 
computer that runs my software.

Thanks anyway...

-Bill


> -----Original Message-----
> From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-
> boun...@sqlite.org] On Behalf Of Joe Mistachkin
> Sent: Tuesday, May 06, 2014 5:56 PM
> To: 'General Discussion of SQLite Database'
> Subject: Re: [sqlite] Is there a single file version of
> System.Data.SQLite?
>
>
> Drago, William @ MWG - NARDAEAST wrote:
> >
> > Is there a way to use the "System.Data.SQLite.dll" mixed-mode
> assembly
> outside
> > of the GAC? Or is there a 32 bit only single file version of SQLite?
> >
>
> Sure, you should be able to load the mixed-mode assembly from an
> arbitrary location using the LoadFrom() method, as seen here:
>
>       http://msdn.microsoft.com/en-
> us/library/1009fa28%28v=vs.110%29.aspx
>
> Alternatively, if the mixed-mode assembly is located in the same
> directory as the application binary itself, it may be possible to use
> the Load() method, as seen here:
>
>       http://msdn.microsoft.com/en-
> us/library/ky3942xh%28v=vs.110%29.aspx
>
> --
> Joe Mistachkin
>
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
CONFIDENTIALITY, EXPORT CONTROL AND DISCLAIMER NOTE:This e-mail and any 
attachments are solely for the use of the addressee and may contain information 
that is privileged or confidential. Any disclosure, use or distribution of the 
information contained herein is prohibited. In the event this e-mail contains 
technical data within the definition of the International Traffic in Arms 
Regulations or Export Administration Regulations, it is subject to the export 
control laws of the U.S.Government. The recipient should check this e-mail and 
any attachments for the presence of viruses as L-3 does not accept any 
liability associated with the transmission of this e-mail. If you have received 
this communication in error, please notify the sender by reply e-mail and 
immediately delete this message and any attachments.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to