Feb 13, 2013

Tips : Unable to Load SQlite.Interop.dll problem with System.Data.SQlite


Hai, I recently got some problem when deploying SQlite at my C# .Net project. Title of this post already describe the problem. When I you use system.data.sqlite by referencing your project to system.data.sqlite.dll, there will be chance you will reproduce this problem.
This steps will give you the right step to configure your project, so you can use sqlite without glitch.
Setting up system.data.sqlite with c# :

  1. Download the binary precompiled package at here.
  2. Right Click your solution at solution explorer, choose [Add] – [Existing Item].
  3. On file type drop down, choose All Files.
  4. Add the SQlite.Interop.dll.
    Image
  5. Find the SQLite.Interop.dll at your solution explorer and give it a right click, select [properties]. At properties panel, choose [Always Copy] at
    Image
  6. And problem solved.
I hope it will help you all.

No comments:

Post a Comment