<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: My Revit app can't find SQLite. dll in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10330761#M50713</link>
    <description>&lt;P&gt;What we're doing is API programming, unlike creating a standlone program there is no auto Loading and Revit is not going to load a single assembly unless explicitly told to do so.&amp;nbsp; When loading assemblies I'm careful to examine what has already been loaded in order to &lt;STRONG&gt;avoid double loading&lt;/STRONG&gt; and creating a memory leak.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See if you can make sense of the below code, to get my meaning..&amp;nbsp;&lt;/P&gt;&lt;P&gt;And do you have a link to the demo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;            if (AppDomain.CurrentDomain.GetAssemblies().Where(x =&amp;gt; x.FullName == stringWindowsAPICodePack).Count() == 0)
            {
                Assembly.Load(File.ReadAllBytes(path + "\\Microsoft.WindowsAPICodePack.dll"));
            }
            if (AppDomain.CurrentDomain.GetAssemblies().Where(x =&amp;gt; x.FullName == stringWindowsAPICodePackShell).Count() == 0)
            {
                Assembly.Load(File.ReadAllBytes(path + "\\Microsoft.WindowsAPICodePack.Shell.dll"));
            }
            //2 August 2019: End.

            Properties.Settings.Default.AssemblyNeedLoading = false;
            Properties.Settings.Default.Save();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 22 May 2021 00:21:47 GMT</pubDate>
    <dc:creator>joshua.lumley</dc:creator>
    <dc:date>2021-05-22T00:21:47Z</dc:date>
    <item>
      <title>My Revit app can't find SQLite. dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/7944194#M50700</link>
      <description>&lt;P&gt;I am trying to use SQLite in my c# app to store data but I got file not find althought I refenced in the app, put it in all possible folders.&lt;/P&gt;&lt;P&gt;What to do? See the image.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="0000.jpg" style="width: 765px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/490582i6ABEF5CFDDFA9159/image-size/large?v=v2&amp;amp;px=999" role="button" title="0000.jpg" alt="0000.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 09:32:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/7944194#M50700</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-19T09:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: My Revit app can't find SQLite. dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/7944353#M50701</link>
      <description>look at this &lt;A href="https://forums.autodesk.com/t5/revit-api-forum/3rd-party-dll-in-revit-addin/m-p/7746443#M28372" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/3rd-party-dll-in-revit-addin/m-p/7746443#M28372&lt;/A&gt; and if you start from RevitManager it can not load it with referenced dll</description>
      <pubDate>Thu, 19 Apr 2018 10:37:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/7944353#M50701</guid>
      <dc:creator>MarryTookMyCoffe</dc:creator>
      <dc:date>2018-04-19T10:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: My Revit app can't find SQLite. dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/7946665#M50702</link>
      <description>Hi usama,

Please put SQLite.dll to the same folder with your external applicaiton "Licenses" dll.
After that, your app will find the SQLite.dll when it runs.</description>
      <pubDate>Fri, 20 Apr 2018 01:53:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/7946665#M50702</guid>
      <dc:creator>JimJia</dc:creator>
      <dc:date>2018-04-20T01:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: My Revit app can't find SQLite. dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/7946965#M50703</link>
      <description>Thank you for the answer. Actually it is there. When I add a refrence to the sqlite.dll in the Revit.exe directory it works.</description>
      <pubDate>Fri, 20 Apr 2018 06:12:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/7946965#M50703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-20T06:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: My Revit app can't find SQLite. dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/7950094#M50704</link>
      <description>&lt;P&gt;Revit.exe directory is the key. Alternatively, use a .NET assembly resolver:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2014/05/rvtva3c-assembly-resolver.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2014/05/rvtva3c-assembly-resolver.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Apr 2018 19:32:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/7950094#M50704</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-04-21T19:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: My Revit app can't find SQLite. dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/9930402#M50705</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have the same problem. I try use&amp;nbsp;Assembly.LoadFrom(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "System.Data.SQLite.dll")); but don't working.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 17:44:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/9930402#M50705</guid>
      <dc:creator>Tripler123</dc:creator>
      <dc:date>2020-12-10T17:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: My Revit app can't find SQLite. dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10310346#M50706</link>
      <description>&lt;P&gt;I have the same problem. My plugin program run on Revit 2021. I make sure that Revit 2021 have not 'System.Data.SQLite.dll'. I don't know why tell me 'cannot load the dll'.&lt;/P&gt;&lt;P&gt;I haved try using 'Linq2Db' and 'EntityFramework' for sqlite to do, but I failed. If you have solution, please tell me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thinks!&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 11:15:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10310346#M50706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-13T11:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: My Revit app can't find SQLite. dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10317470#M50707</link>
      <description>&lt;P&gt;try read what path it give you back before calling dll.&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 07:42:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10317470#M50707</guid>
      <dc:creator>MarryTookMyCoffe</dc:creator>
      <dc:date>2021-05-17T07:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: My Revit app can't find SQLite. dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10318698#M50708</link>
      <description>&lt;P&gt;The dll path is valid. I guess that revit maybe not work well. My solution: Dapper+System.Data.SQLite.Core+DapperExtensions. You will can write lambda expression to do anything.&lt;/P&gt;&lt;P&gt;Demo:&amp;nbsp;&lt;A href="https://github.com/kelicto/HelloDapper" target="_blank"&gt;https://github.com/kelicto/HelloDapper&lt;/A&gt;. EntityFramework and Linq2Db cannot do that and throw exception.&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 17:18:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10318698#M50708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-17T17:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: My Revit app can't find SQLite. dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10323105#M50709</link>
      <description>&lt;P&gt;I ran into issues recently in 2022 related to references that previously worked and turning on and using the Fusion Assembly Binding log viewer was a substantial help.&lt;/P&gt;&lt;P&gt;"Fuslogvw.exe (Assembly Binding Log Viewer) | Microsoft Docs" &lt;A href="https://docs.microsoft.com/en-us/dotnet/framework/tools/fuslogvw-exe-assembly-binding-log-viewer" target="_blank"&gt;https://docs.microsoft.com/en-us/dotnet/framework/tools/fuslogvw-exe-assembly-binding-log-viewer&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 10:07:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10323105#M50709</guid>
      <dc:creator>Sean_Page</dc:creator>
      <dc:date>2021-05-19T10:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: My Revit app can't find SQLite. dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10328417#M50710</link>
      <description>&lt;P&gt;SQlite is dependent on these two .net binaries that Revit does not load, therefore they also need to be loaded along with it:&lt;BR /&gt;Microsoft.WindowsAPICodePack.dll&lt;BR /&gt;Microsoft.WindowsAPICodePack.Shell.dll&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 05:31:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10328417#M50710</guid>
      <dc:creator>joshua.lumley</dc:creator>
      <dc:date>2021-05-21T05:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: My Revit app can't find SQLite. dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10328955#M50711</link>
      <description>&lt;P&gt;Maybe you are right. But why don't auto load them? 'Assembly.LoadFrom' method can auto load all required dlls. And the sqlite should give us all dlls.&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 10:39:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10328955#M50711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-21T10:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: My Revit app can't find SQLite. dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10328960#M50712</link>
      <description>&lt;P&gt;Please see my demo, it's very nice to assess sqlite db by lambda.&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 10:41:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10328960#M50712</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-21T10:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: My Revit app can't find SQLite. dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10330761#M50713</link>
      <description>&lt;P&gt;What we're doing is API programming, unlike creating a standlone program there is no auto Loading and Revit is not going to load a single assembly unless explicitly told to do so.&amp;nbsp; When loading assemblies I'm careful to examine what has already been loaded in order to &lt;STRONG&gt;avoid double loading&lt;/STRONG&gt; and creating a memory leak.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See if you can make sense of the below code, to get my meaning..&amp;nbsp;&lt;/P&gt;&lt;P&gt;And do you have a link to the demo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;            if (AppDomain.CurrentDomain.GetAssemblies().Where(x =&amp;gt; x.FullName == stringWindowsAPICodePack).Count() == 0)
            {
                Assembly.Load(File.ReadAllBytes(path + "\\Microsoft.WindowsAPICodePack.dll"));
            }
            if (AppDomain.CurrentDomain.GetAssemblies().Where(x =&amp;gt; x.FullName == stringWindowsAPICodePackShell).Count() == 0)
            {
                Assembly.Load(File.ReadAllBytes(path + "\\Microsoft.WindowsAPICodePack.Shell.dll"));
            }
            //2 August 2019: End.

            Properties.Settings.Default.AssemblyNeedLoading = false;
            Properties.Settings.Default.Save();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 May 2021 00:21:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10330761#M50713</guid>
      <dc:creator>joshua.lumley</dc:creator>
      <dc:date>2021-05-22T00:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: My Revit app can't find SQLite. dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10337392#M50714</link>
      <description>&lt;P&gt;To access Sqlite db, I use System.Data.SQLite.dll.&lt;/P&gt;&lt;P&gt;I don't understand why should this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kelicto9SEKZ_0-1621935578461.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/922482iF30170854E2B25E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kelicto9SEKZ_0-1621935578461.png" alt="kelicto9SEKZ_0-1621935578461.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 09:41:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10337392#M50714</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-25T09:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: My Revit app can't find SQLite. dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10337404#M50715</link>
      <description>&lt;P&gt;Sorry, it's invalid message. I don't know how to close it.&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 09:42:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10337404#M50715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-25T09:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: My Revit app can't find SQLite. dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10339093#M50716</link>
      <description>&lt;P&gt;Keep trying, your close to finding the solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 19:38:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10339093#M50716</guid>
      <dc:creator>joshua.lumley</dc:creator>
      <dc:date>2021-05-25T19:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: My Revit app can't find SQLite. dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10341295#M50717</link>
      <description>&lt;P&gt;Hello &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1630015"&gt;@joshua.lumley&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Thanks for your great answer it helped me a lot.&lt;BR /&gt;Could you tell me which using you need for the following snippet, and why it is needed? It seem to be working without.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;     Properties.Settings.Default.AssemblyNeedLoading = false;
     Properties.Settings.Default.Save();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;François R&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 14:14:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10341295#M50717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-26T14:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: My Revit app can't find SQLite. dll</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10342152#M50718</link>
      <description>&lt;P&gt;This code is in the&amp;nbsp;&lt;STRONG&gt;IExternalCommand&amp;nbsp;&lt;/STRONG&gt;interface (when the user clicks a button) and only needs to be run once per session. The AssemblyNeedLoading variable is set to true on launch.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 19:37:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/my-revit-app-can-t-find-sqlite-dll/m-p/10342152#M50718</guid>
      <dc:creator>joshua.lumley</dc:creator>
      <dc:date>2021-05-26T19:37:42Z</dc:date>
    </item>
  </channel>
</rss>

