Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not load file or assembly 'CopyModules.dll' or one of its dependencies. The specified module could not be found

The published app that uses WPF controls of Eyeshot Ultimate 11 throws an exception with the following message when devDept.Eyeshot.Translators.ReadAutodesk is called:

Could not load file or assembly 'CopyModules.dll' or one of its dependencies. The specified module could not be found.

The stack trace is shown here:

this image.

CopyModules.dll is present in the application.

This exception is thrown in some computers but NOT in others.

We tried copying all dlls from ~\devDept Software\Eyeshot Ultimate 11\Bin\x86 to application's bin folder but that did not solve the issue.

Is there something we need to do to prevent this?

like image 558
ab3nash Avatar asked May 16 '18 09:05

ab3nash


People also ask

Could not load file or assembly or one of its dependencies DLL?

There are some workarounds for this issue: The dll file may not be in /bin folder. Just copy the dll file to /bin folder or set this preference Copy Local = True from Visual Studio. If the problem persists, check if the version of the assembly that is referenced is different than the version it is looking for.

Can not load file or assembly?

In summary if you get the "Could not load file or assembly error", this means that either your projects or their references were built with a reference to a specific version of an assembly which is missing from your bin directory or GAC.


1 Answers

Microsoft Visual C++ 2012 Redistributable Package corresponding to the build architecture (x86 or x64) is required in end-user machines.

like image 160
Ramhari Gyawali Avatar answered Sep 23 '22 09:09

Ramhari Gyawali