title: System.IO.FileNotFoundException was unhandled - Autodesk Navisworks API
body: <p>I am referring to Nw_Single_Doc_With_View (written in C# .NET) in <a href="http://usa.autodesk.com/adsk/servlet/index?id=15024694&amp;siteID=123112" rel="nofollow noreferrer">Navisworks 2016 API Training Labs</a>.</p>
  
  <p>I have added the Autodesk references DLL and set both of them as false in "Copy Local" property. Autodesk API Reference Manual has specified to set "Copy Local" property to false in DLL.</p>
  
  <p><a href="https://i.stack.imgur.com/2xaUw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2xaUw.png" alt="enter image description here"></a></p>
  
  <p>When I try to run the project, I got an error message saying:</p>
  
  <blockquote>
    <p>System.IO.FileNotFoundException was unhandled
    Message: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
    Additional information: Could not load file or assembly 'Autodesk.Navisworks.Controls, Version=14.0.1298.75, Culture=neutral, PublicKeyToken=d85e58fa5af9b484' or one of its dependencies. The system cannot find the file specified.</p>
  </blockquote>
  
  <p>And when I try to view "Viewer.cs" [Design] page,I got an error message saying as followed:</p>
  
  <blockquote>
    <p>Severity  Code    Description Project File    Line    Suppression State
    Message     Could not find type 'Autodesk.Navisworks.Api.Controls.DocumentControl'.  Please make sure that the assembly that contains this type is referenced.  If this type is a part of your development project, make sure that the project has been successfully built using settings for your current platform or Any CPU.         0<br>
    Message     Could not find type 'Autodesk.Navisworks.Api.Controls.ViewControl'.  Please make sure that the assembly that contains this type is referenced.  If this type is a part of your development project, make sure that the project has been successfully built using settings for your current platform or Any CPU.         0<br>
    Message     The variable 'viewControl' is either undeclared or was never assigned.      C:\Users\Joe\Autodesk\Navisworks_2016_API_Training_Labs\Indivudual labs\Nw_Single_Doc_With_View\Viewer.Designer.cs  150 </p>
  </blockquote>
  
  <p>I have attached several screenshots and sample project for your reference.</p>
  
  <p>a) Sample project: <a href="http://www.filedropper.com/nwsingledocwithview" rel="nofollow noreferrer">Navisworks_2016_API_Training_Labs.zip</a></p>
  
  <p>b) DLL Locations for Navisworks: <a href="https://i.stack.imgur.com/xIfxF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xIfxF.png" alt="How I add Navisworks DLL"></a></p>
  
  <p>c) .NET Frameworks <a href="https://i.stack.imgur.com/m0JcX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m0JcX.png" alt="enter image description here"></a></p>
  
  <p>d) Autodesk API Manual: <a href="http://www.filedropper.com/netapi" rel="nofollow noreferrer">Autodesk API Reference Manual</a></p>
  
  <p>For your info, my computer is a Windows 7 64 bit.</p>
  
  <p>Could you tell me why I got this error and how can I solve it?
  Thank you</p>
  
  <p>P/S: I have posted my question in Autodesk Navisworks forum <a href="https://forums.autodesk.com/t5/navisworks-api/system-io-filenotfoundexception-was-unhandled/td-p/6307999" rel="nofollow noreferrer">here</a> but there is no response so far.</p>