<?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: System.IO.FileNotFoundException in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/system-io-filenotfoundexception/m-p/7800244#M4012</link>
    <description>&lt;P&gt;perhaps the problem is you are trying to create a standalone 3dviewer using navisworks as the graphics engine? you can not reference navisworks dlls into a standalone exe application. Did you download the sdk &lt;A href="http://usa.autodesk.com/adsk/servlet/index?id=15024694&amp;amp;siteID=123112" target="_blank"&gt;http://usa.autodesk.com/adsk/servlet/index?id=15024694&amp;amp;siteID=123112&lt;/A&gt;&amp;nbsp;?&amp;nbsp; Look at the sample solution after installing the sdk C:\Program Files\Autodesk\Navisworks Simulate 2018\api\NET\examples. Also&amp;nbsp;look at the zip file &lt;A href="http://images.autodesk.com/adsk/files/Navisworks_Training_Labs_2015_0921.zip" target="_blank"&gt;Navisworks 2016 API Training Labs&lt;/A&gt;&amp;nbsp;found on the website.&lt;/P&gt;
&lt;P&gt;br&lt;/P&gt;
&lt;P&gt;Ulrik&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2018 16:24:47 GMT</pubDate>
    <dc:creator>ulski1</dc:creator>
    <dc:date>2018-02-22T16:24:47Z</dc:date>
    <item>
      <title>System.IO.FileNotFoundException</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/system-io-filenotfoundexception/m-p/7784834#M4010</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.IO.FileNotFoundException: 'Could not load file or assembly 'Autodesk.Navisworks.Api.dll' or one of its dependencies. The specified module could not be found.'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using VS 2017 and have referenced&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Autodesk.Navisworks.Api.dll&lt;/P&gt;&lt;P&gt;Autodesk.Navisworks.Automation.dll&lt;/P&gt;&lt;P&gt;Autodesk.Navisworks.Controls.dll&lt;/P&gt;&lt;P&gt;Autodesk.Navisworks.Resolver.dll&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the VS project in the Navisworks Manage folder, all reference are set to copy local. This is an x64 build, 2018 API, .NET 4.5.2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone shed some light on this error? Are there extra files I need to copy to the output directory?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oli&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 20:29:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/system-io-filenotfoundexception/m-p/7784834#M4010</guid>
      <dc:creator>oheynes</dc:creator>
      <dc:date>2018-02-16T20:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: System.IO.FileNotFoundException</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/system-io-filenotfoundexception/m-p/7800129#M4011</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any chance I could get some support for this error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oli&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 15:58:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/system-io-filenotfoundexception/m-p/7800129#M4011</guid>
      <dc:creator>oheynes</dc:creator>
      <dc:date>2018-02-22T15:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: System.IO.FileNotFoundException</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/system-io-filenotfoundexception/m-p/7800244#M4012</link>
      <description>&lt;P&gt;perhaps the problem is you are trying to create a standalone 3dviewer using navisworks as the graphics engine? you can not reference navisworks dlls into a standalone exe application. Did you download the sdk &lt;A href="http://usa.autodesk.com/adsk/servlet/index?id=15024694&amp;amp;siteID=123112" target="_blank"&gt;http://usa.autodesk.com/adsk/servlet/index?id=15024694&amp;amp;siteID=123112&lt;/A&gt;&amp;nbsp;?&amp;nbsp; Look at the sample solution after installing the sdk C:\Program Files\Autodesk\Navisworks Simulate 2018\api\NET\examples. Also&amp;nbsp;look at the zip file &lt;A href="http://images.autodesk.com/adsk/files/Navisworks_Training_Labs_2015_0921.zip" target="_blank"&gt;Navisworks 2016 API Training Labs&lt;/A&gt;&amp;nbsp;found on the website.&lt;/P&gt;
&lt;P&gt;br&lt;/P&gt;
&lt;P&gt;Ulrik&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 16:24:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/system-io-filenotfoundexception/m-p/7800244#M4012</guid>
      <dc:creator>ulski1</dc:creator>
      <dc:date>2018-02-22T16:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: System.IO.FileNotFoundException</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/system-io-filenotfoundexception/m-p/7801266#M4013</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for replying but it is still not working...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have got the Viewer example working fine, but copying and pasting the same code into my WPF app gives the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have referenced the following dlls in the Navisworks Manage folder, in exactly the same way as the Viewer example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Autodesk.Navisworks.Api&lt;/P&gt;&lt;P&gt;Autodesk.Navisworks.ComApi&lt;/P&gt;&lt;P&gt;Autodesk.Navisworks.Controls&lt;/P&gt;&lt;P&gt;Autodesk.Navisworks.Interop.ComApi&lt;/P&gt;&lt;P&gt;Autodesk.Navisworks.Resolver&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even with a clean WPF app it does not work. I have attached an example.&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;</description>
      <pubDate>Thu, 22 Feb 2018 21:01:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/system-io-filenotfoundexception/m-p/7801266#M4013</guid>
      <dc:creator>oheynes</dc:creator>
      <dc:date>2018-02-22T21:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: System.IO.FileNotFoundException</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/system-io-filenotfoundexception/m-p/7816338#M4014</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3156484"&gt;@oheynes&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a WPF sample in SDK: \api\NET\examples\Basic Examples\CSharp\WPF. It is working. I believe&amp;nbsp;one comment in the&amp;nbsp;App.xaml.cs should have explained why the issue happened with your sample:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // The "Navisworks.Autodesk.Resolver" assembly should be included in your installation.&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;// Other Navisworks.Autodesk.*" assemblies will be resolved at runtime,&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;// and thus should not be included.&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;// Autodesk.Navisworks.Controls controls usage inside the VS Designer is deprecated, and instead they should be created dynamically.&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;i.e. you will need to&amp;nbsp;explicitly ask resolver to resolve the related assemblies, instead of only adding them to references.&amp;nbsp; In the past, we set CopyLocal = false. WPF sample can load the relate assemblies on runtime, but now we need resolver.&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 15:30:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/system-io-filenotfoundexception/m-p/7816338#M4014</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2018-02-28T15:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: System.IO.FileNotFoundException</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/system-io-filenotfoundexception/m-p/12583662#M4015</link>
      <description>&lt;P&gt;hi everyone, i am using naviswork 2024, and i am having the same problem. I tried everything it was discussed here. but nothing worked. Any other suggestion?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 17:16:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/system-io-filenotfoundexception/m-p/12583662#M4015</guid>
      <dc:creator>gustavo_sanches7ZZVWX</dc:creator>
      <dc:date>2024-02-26T17:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: System.IO.FileNotFoundException</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/system-io-filenotfoundexception/m-p/12583906#M4016</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14712872"&gt;@gustavo_sanches7ZZVWX&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;hi everyone, i am using naviswork 2024, and i am having the same problem. I tried everything it was discussed here. but nothing worked. Any other suggestion?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've found that Copy Local must be set to 'True' for&amp;nbsp;&lt;SPAN&gt;Autodesk.Navisworks.Automation.dll to load. Not sure why.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 19:30:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/system-io-filenotfoundexception/m-p/12583906#M4016</guid>
      <dc:creator>jabowabo</dc:creator>
      <dc:date>2024-02-26T19:30:03Z</dc:date>
    </item>
  </channel>
</rss>

