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:
.
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?
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.
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.
Microsoft Visual C++ 2012 Redistributable Package corresponding to the build architecture (x86 or x64) is required in end-user machines.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With