Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear Team,

I have both SQLite.DLL and SQLite.Interop.DLL

I want to create a setup for both platforms(32 bit & 64 bit) separately.

Need to use 32 bit platform as well as 64 bit platform, while setup its shows error.

please provide how to use my setup file both(32 and 64) bit platforms.

and I have SQLite database and 3.5 visual studio framework.

please provide details for my doubts.

Thanks in Advance.

What I have tried:

GAC - Global assembly cache, where I can add those dll and how to add my project.

SQLite.dll and SQLite.Interop.dll, I have tried those dlls within my same project bin folder directory and access it. but while creating setup file in SQLite.Interop.dll reference error shows.
Posted
Updated 28-Jan-19 22:10pm
v2
Comments
RickZeeland 29-Jan-19 3:55am    
What kind of setup program are you using ?
How is your project configured in VS, Any CPU or x64 or x86 ?
Mohankumar.Engain 29-Jan-19 4:35am    
We are creating exe file setup.
Configured in Visual studio
1. if x64 then setup will work on windows x64 platforms(64 bit machine),
2. if x86 then setup will work on windows x86 platforms(32 bit machine)
using SQLite.dll and SQLite.Interop.dll assemblies.
Mohankumar.Engain 29-Jan-19 4:39am    
If we are generating setup file, facing exception like below,
System.DllNotFoundException: 'Unable to load DLL 'SQLite.Interop.dll':
The specified module could not be found. (Exception from HRESULT: 0x8007007E)'.
Mohankumar.Engain 29-Jan-19 8:09am    
If try to connect with SQLite Database using those assemblies, below issue raised,
=> System.Data.SQLite.SQLiteException: 'SQL logic error
no such table: Tb_User'

1 solution

An option might be to use the managed version C#-SQLite: Google Code Archive[^]
It's a port to managed C#, so it can run as AnyCPU.

Another easy option might be to make your application x86 only, this way it will run on both 32-bits and 64-bits Windows.

You might also be interested in these answers: c# - Unable to load DLL 'SQLite.Interop.dll' - Stack Overflow[^]
 
Share this answer
 
v3
Comments
Mohankumar.Engain 29-Jan-19 4:41am    
Actually we are adding two assemblies, 1. SQLite.dll and 2. SQLite.Interop.dll.
while generating setup below issue raised,
System.DllNotFoundException: 'Unable to load DLL 'SQLite.Interop.dll':
The specified module could not be found. (Exception from HRESULT: 0x8007007E)'.
Mohankumar.Engain 29-Jan-19 8:09am    
If try to connect with SQLite Database using those assemblies, below issue raised,
=> System.Data.SQLite.SQLiteException: 'SQL logic error
no such table: Tb_User'
RickZeeland 29-Jan-19 8:22am    
Probably a path problem, see: https://stackoverflow.com/questions/19800053/sql-logic-error-or-missing-database-no-such-table-when-deleting-from-database/20083762#20083762

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