> > System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> > System.TypeInitializationException: The type initializer for 'System.Data.SQLite.SQLiteFactory' threw an exception. ---> > System.DllNotFoundException: Unable to load DLL 'SQLite.Interop.DLL': The specified module could not be found. > (Exception from HRESULT: 0x8007007E) >
This exception is almost always caused by a failure to locate the DLL in question (i.e. SQLite.Interop.dll). If you are building from source and wish to run the test executable from within the IDE, you'll need to select "DebugNativeOnly" or "ReleaseNativeOnly" as the build configuration. Also, if you want to debug a "pure" managed process, like the test executable, on an x64 machine, you will need to set the platform to x64, not Win32; otherwise, you'll simply get a BadImageFormatException when the managed process (which will actually start as a 64-bit process) tries to load a 32-bit SQLite.Interop.dll. -- Joe Mistachkin _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users