System.IO.FileNotFoundException: Could not load file or assembly 'X' when running the application

783 Views Asked by At

I am developing an extension for Autodesk Vault but recently I got the following error when I try to set the references of the programm DLLs to Copy Local = false:

System.IO.FileNotFoundException: Could not load file or assembly 'X' or one of its dependencies

Oddly enough it works when I set the attribute Copy Local to true for some reason.

FYI: The DLLs are being referenced from the Installation Folder of the Vault application so it should work just fine. I have also checked if they are actually there (just in case) and yes they exist.

What I have tried to fix this:

  1. Removing the references and adding them again
  2. Compiling the project with x86 architecture
  3. Cleaning and rebuilding the application

Unfortunately the Referencing still only works if I set the Copylocal attribute to true, otherwise it throws me the IO Exception. The Error occurs on runtime of the program.

Is there any way to fix this or am I doing something wrong?

0

There are 0 best solutions below