Click here to Skip to main content
15,794,593 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i created c#.net windows applications in vs 2013, when i build the solutions it will runs good but when i try to deploy this applications to other machine it gives the error
could not load file or assembly system.data.Sqlite

System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.SQLite, Version=1.0.94.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Data.SQLite, Version=1.0.94.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139'
Posted
Comments
Arjsrya 6-Jan-15 7:16am    
Did you check the framework version on both ends?Did you check whether the dll is present on the deployed area?
Praveen Kumar Upadhyay 6-Jan-15 8:19am    
If it is a Console or Windows Application, then you need to copy the sqlite dll to the targeted exe.
Srikanth59 8-Jan-15 0:40am    
it is windows application every time i need to copy the sqlite dll to the targeted exe, can you tell me how should i solve this problem
Praveen Kumar Upadhyay 8-Jan-15 1:17am    
As per my best of knowledge,
It is a separate dll than your project you are creating. You have to understand that you can not code it. You have to have keep it with your project. One thing you can do, create installer(setup) and add this dll to that installer.
Srikanth59 8-Jan-15 3:40am    
okay if i create installer and add sqlite.dll to other installer , it will work on the other system

SQLite is not part of .NET, it is obtained from http://system.data.sqlite.org/index.html/doc/trunk/www/index.wiki[^]. You will need to add it to your deployment to install it on every system that uses your application.
 
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