{"id":1912,"date":"2022-08-30T15:20:29","date_gmt":"2022-08-30T15:20:29","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/12\/02\/vs2012express-ado-net-sqlite-missing-dll-issue-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:20:29","modified_gmt":"2022-08-30T15:20:29","slug":"vs2012express-ado-net-sqlite-missing-dll-issue-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/vs2012express-ado-net-sqlite-missing-dll-issue-collection-of-common-programming-errors\/","title":{"rendered":"VS2012EXPRESS Ado.Net SQLite missing DLL issue-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to work out how to use ADO.Net Sqlite in VS2012 Express with no luck.<\/p>\n<p>Things im doing from begining:<\/p>\n<ol>\n<li>Starting new project and installing &#8220;System.Data.SQLite (x86\/x64)&#8221; via NuGet for solution.<\/li>\n<li>Adding <code>using System.Data.SQLite;<\/code> to directives.<\/li>\n<li>\n<p>Writing simple code like:<\/p>\n<p>SQLiteConnection sql_sck = new SQLiteConnection(&#8220;Data Source=test.sqlite;Version=3;New=False;Compress=True;&#8221;);<\/p>\n<\/li>\n<\/ol>\n<p>Everything seems to look okay, VS recognize class names and changes their colors. However after running the program, in the sql_sck&#8230; line, exception is raised &#8211; about missing dll ?<\/p>\n<pre><code>An unhandled exception of type 'System.DllNotFoundException' occurred in System.Data.SQLite.dll\nAdditional information: Could not load DLL 'SQLite.Interop.dll': Could not find specified module. (Exception HRESULT: 0x8007007E)\n<\/code><\/pre>\n<p>Any ideas how can I make this work ? Is there anything I&#8217;ve done wrong \/ any steps missing ?<\/p>\n<ol>\n<li>\n<p>Somewhere Visual Studio will have created SQLite.Interop.DLL. You need to find that DLL and copy it to the same directory as your application&#8217;s executable.<\/p>\n<p>I usually add Interop DLLs to my project as a reference and flag them for copying to the output directory in order to ensure that others that use the projects don&#8217;t forget the manual step.<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2013-12-02 21:17:39. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to work out how to use ADO.Net Sqlite in VS2012 Express with no luck. Things im doing from begining: Starting new project and installing &#8220;System.Data.SQLite (x86\/x64)&#8221; via NuGet for solution. Adding using System.Data.SQLite; to directives. Writing simple code like: SQLiteConnection sql_sck = new SQLiteConnection(&#8220;Data Source=test.sqlite;Version=3;New=False;Compress=True;&#8221;); Everything seems to look okay, VS recognize class [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1912","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1912","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1912"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1912\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}