Click here to Skip to main content
15,899,475 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I used x86 SQLite.interop.dll and SQLite3.dll in my application it is running in Windows10, but in windows7 it is crashing with the following error:
Exception Info: System.DllNotFoundException
at System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(System.Data.SQLite.SQLiteConfigOpsEnum)
at System.Data.SQLite.SQLite3.StaticIsInitialized()
at System.Data.SQLite.SQLiteLog.Initialize()
at System.Data.SQLite.SQLiteConnection..ctor(System.String, Boolean)
at System.Data.SQLite.SQLiteConnection..ctor(System.String)
at PointOfSale.CursorWait.Logger.IfExists(System.String)
at PointOfSale.CursorWait.Logger.getPath(System.String)
at PointOfSale.CursorWait.Logger..ctor()
at PointOfSale.CursorWait.SQLSelects..ctor()
at PointOfSale.Logon.btnLogin_Click(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
at System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnAccessKey(System.Windows.Input.AccessKeyEventArgs)

What I have tried:

I tried with SQLite.dll(x86) and SQLite.interop.dll(x86)
Posted
Updated 16-Mar-17 16:32pm
Comments
CHill60 16-Mar-17 10:20am    
Did you install the dll correctly on your Windows 7 machine?

1 solution

When you set the .Net Framework version for the project, Nuget will choose the correct SqLite version for you.

The tricky party is configuring the installer to choose the correct 32bit or 64bit version .

In my apps, I create x64 & x32 folders and "Add as Link" the correct versions of SQLite.Interop.dll from the Nuget package folder into their respective x64/x32 app folders. The installer (OneClick in my case) packages them up and installs them correctly. Yes, even Windows 7 (32bit).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900