Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Exception thrown: 'System.IO.FileNotFoundException' sqlite

Exception thrown: 'System.IO.FileNotFoundException' sqlite

Scheduled Pinned Locked Moved C#
helpquestioncsharpasp-netsqlite
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member_14723992
    wrote on last edited by
    #1

    So I'm working on a plugin for an application. So I'm creating a ClassLibrary in C#. I'm stuck at this point where it throws that error telling me that System.data.sqlite.dll isn't found. But I've checked it and even manually replaced the file, and it's there. Another thing to note is that since it's a ClassLibrary, there no executable, it runs when the button on the application is pressed to run the plugin. Also this is my first time working with sqlite in C#. So I followed someone's instructions, which told me to simply get sqlite core from nuget and get dapper from nuget. I've done that. Do I need to get something from system.data.sqlite's website? Please excuse the way I've asked too many question, but I'm just puzzled. This is my first time working with a Class Library and I never thought it'd be so much different to a console or winform application. Regards

    R 1 Reply Last reply
    0
    • M Member_14723992

      So I'm working on a plugin for an application. So I'm creating a ClassLibrary in C#. I'm stuck at this point where it throws that error telling me that System.data.sqlite.dll isn't found. But I've checked it and even manually replaced the file, and it's there. Another thing to note is that since it's a ClassLibrary, there no executable, it runs when the button on the application is pressed to run the plugin. Also this is my first time working with sqlite in C#. So I followed someone's instructions, which told me to simply get sqlite core from nuget and get dapper from nuget. I've done that. Do I need to get something from system.data.sqlite's website? Please excuse the way I've asked too many question, but I'm just puzzled. This is my first time working with a Class Library and I never thought it'd be so much different to a console or winform application. Regards

      R Offline
      R Offline
      Richard Deeming
      wrote on last edited by
      #2

      If it's a plugin, is it looking for the file in the directory of the application you've plugged into, rather than in the directory of the plugin? Maybe you could use the AssemblyResolve event to locate the file? Resolve assembly loads | Microsoft Docs[^]


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups