<?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: Simulate 2018: Could not load file or assembly 'Autodesk.Navisworks.Controls' in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/simulate-2018-could-not-load-file-or-assembly-autodesk/m-p/11451551#M3249</link>
    <description>&lt;P&gt;FYI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know it's an old post and resolved but that might help some other people in the future....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I add the same issue with Navisworks 2023 and I found out in my app.config that instead of the ,NET framework 4.8 which seems to be the version to use when compiling, you need to set to 4.5inthe startup section, as shown below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;startup&amp;gt;&lt;BR /&gt;&amp;lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=&lt;EM&gt;&lt;STRONG&gt;v4.5&lt;/STRONG&gt;&lt;/EM&gt;"/&amp;gt;&lt;BR /&gt;&amp;lt;/startup&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My2 cents&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2022 07:33:22 GMT</pubDate>
    <dc:creator>btmsoftware</dc:creator>
    <dc:date>2022-09-29T07:33:22Z</dc:date>
    <item>
      <title>Simulate 2018: Could not load file or assembly 'Autodesk.Navisworks.Controls'</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/simulate-2018-could-not-load-file-or-assembly-autodesk/m-p/8908137#M3244</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been working on multiple utilities developed based on Navisworks Sumulate 2016 .net APIs. everything works fine. Now I need to upgrade these utilities from Navisworks Simulate 2016 to 2018 and higher.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed the .NET API dlls reference path to Navisworks Simulate 2018 installation directory in my visual studio solution and I am referencing.Net framework 4.6 in my solution, but I am getting following error.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;System.IO.FileNotFoundException:&lt;/STRONG&gt; 'Could not load file or assembly 'Autodesk.Navisworks.Controls, Version=15.0.1314.36, Culture=neutral, PublicKeyToken=d85e58fa5af9b484' or one of its dependencies. The system cannot find the file specified.'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error1.png" style="width: 863px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/657299i47B9FE46A63C47D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error1.png" alt="Error1.png" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error2.png" style="width: 436px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/657300i53E37C04551529D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error2.png" alt="Error2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried upgrading sample application which is delivered by Autodesk for Navisworks Simulate 2016 .net API and I am getting same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please shed some light on what I am missing here. Is anything modified from v2016 to v2018?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jul 2019 08:26:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/simulate-2018-could-not-load-file-or-assembly-autodesk/m-p/8908137#M3244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-14T08:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Simulate 2018: Could not load file or assembly 'Autodesk.Navisworks.Controls</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/simulate-2018-could-not-load-file-or-assembly-autodesk/m-p/8925755#M3245</link>
      <description>&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;This issue is resolved after upgrading to Navisworks Simulate 2018 Update 2.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Make sure to set "Copy to Local = True" for&amp;nbsp;Autodesk.Navisworks.Resolver.dll, and "Copy to Local=False" on all remaining Navisworks dlls in your Visual Studio solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 14:34:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/simulate-2018-could-not-load-file-or-assembly-autodesk/m-p/8925755#M3245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-23T14:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Simulate 2018: Could not load file or assembly 'Autodesk.Navisworks.Controls</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/simulate-2018-could-not-load-file-or-assembly-autodesk/m-p/9171127#M3246</link>
      <description>&lt;P&gt;i tried the above solution but still i am getting the same error.Do you have any idea or other way how did you fix this&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 04:10:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/simulate-2018-could-not-load-file-or-assembly-autodesk/m-p/9171127#M3246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-28T04:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Simulate 2018: Could not load file or assembly 'Autodesk.Navisworks.Controls</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/simulate-2018-could-not-load-file-or-assembly-autodesk/m-p/9193562#M3247</link>
      <description>&lt;P&gt;Versions 2017 and up use the assembly resolver.&amp;nbsp; Reference &lt;STRONG&gt;Autodesk.Navisworks.Resolver.dll&lt;/STRONG&gt; and set its&amp;nbsp;&lt;EM&gt;CopyLocal&lt;/EM&gt; to true.&amp;nbsp; Set &lt;EM&gt;CopyLocal&lt;/EM&gt; to false for all your other Navisworks assemblies.&amp;nbsp; In your code you can bind to the runtime with the resolver using the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;String runtimeName = Resolver.TryBindToRuntime(RuntimeNames.Any);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also specify RuntimeNames.NavisworksManage or RuntimeNames.NavisworksSimulate if you want to use a specific runtime.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to see a sample of how it works, take a look at the "Viewer" sample app in &lt;EM&gt;api\NET\examples\Basic Examples\CSharp\Viewer\&lt;/EM&gt; in the SDK.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 15:04:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/simulate-2018-could-not-load-file-or-assembly-autodesk/m-p/9193562#M3247</guid>
      <dc:creator>marc.whitburn</dc:creator>
      <dc:date>2019-12-10T15:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Simulate 2018: Could not load file or assembly 'Autodesk.Navisworks.Controls</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/simulate-2018-could-not-load-file-or-assembly-autodesk/m-p/9200153#M3248</link>
      <description>&lt;P&gt;after adding Resolver reference and set local to true for the below code it is working fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using System;&lt;BR /&gt;using System.Collections.Generic;&lt;BR /&gt;using System.ComponentModel;&lt;BR /&gt;using System.Data;&lt;BR /&gt;using System.Drawing;&lt;BR /&gt;using System.Linq;&lt;BR /&gt;using System.Text;&lt;BR /&gt;using System.Threading.Tasks;&lt;BR /&gt;using System.Windows.Forms;&lt;BR /&gt;using Navisworksapplication = Autodesk.Navisworks.Api.Automation.NavisworksApplication;&lt;/P&gt;&lt;P&gt;namespace exe1&lt;BR /&gt;{&lt;BR /&gt;public partial class Form1 : Form&lt;BR /&gt;{&lt;BR /&gt;public Form1()&lt;BR /&gt;{&lt;BR /&gt;InitializeComponent();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;public void Button1_Click(object sender, EventArgs e)&lt;BR /&gt;{&lt;BR /&gt;Navisworksapplication NWApp = new Autodesk.Navisworks.Api.Automation.NavisworksApplication();&lt;BR /&gt;NWApp.Visible = true;&lt;/P&gt;&lt;P&gt;OpenFileDialog filename = new OpenFileDialog();&lt;/P&gt;&lt;P&gt;var fddd = (filename.ShowDialog() == DialogResult.OK);&lt;/P&gt;&lt;P&gt;string tt;&lt;BR /&gt;tt = "fdf";&lt;BR /&gt;if (fddd)&lt;BR /&gt;{&lt;BR /&gt;tt = filename.FileName;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;NWApp.AppendFile(tt);&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 03:26:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/simulate-2018-could-not-load-file-or-assembly-autodesk/m-p/9200153#M3248</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-13T03:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Simulate 2018: Could not load file or assembly 'Autodesk.Navisworks.Controls'</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/simulate-2018-could-not-load-file-or-assembly-autodesk/m-p/11451551#M3249</link>
      <description>&lt;P&gt;FYI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know it's an old post and resolved but that might help some other people in the future....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I add the same issue with Navisworks 2023 and I found out in my app.config that instead of the ,NET framework 4.8 which seems to be the version to use when compiling, you need to set to 4.5inthe startup section, as shown below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;startup&amp;gt;&lt;BR /&gt;&amp;lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=&lt;EM&gt;&lt;STRONG&gt;v4.5&lt;/STRONG&gt;&lt;/EM&gt;"/&amp;gt;&lt;BR /&gt;&amp;lt;/startup&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My2 cents&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 07:33:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/simulate-2018-could-not-load-file-or-assembly-autodesk/m-p/11451551#M3249</guid>
      <dc:creator>btmsoftware</dc:creator>
      <dc:date>2022-09-29T07:33:22Z</dc:date>
    </item>
  </channel>
</rss>

