I am receiving this exception in my C# project:
System.IO.FileNotFoundException: Could not load file or assembly 'wcl.dll' or one of its dependencies. The specified module could not be found.
wcl.dll
is present, so I can only think that the exception is caused by one of its dependencies, which must be missing.
Is there any way to tell what file could not be found?
Edit
I don't have access to the source code or anything from wcl.dll
- it's a third-party library.
Another edit
This exception only shows up when I run the application on a clean VM (Win 7, 64 bit), but not on other devices such as my own development PC (also Win 7, 64 bit)
Edited again to change to the actual dll file name!
Update
Hmm... So I found out the two missing dlls by using dumpbin /dependencies
. The exception goes away if I include msvcp110.dll and msvcr110.dll copy these into the running directory of the application. However, if I copy them into C:\Windows\System32 it doesn't!
But this problem is only on the Virtual Machine - on any other computer, it suffices to have them in C:\Windows\System32. I have read that these are part of Visual C++ Redistributable - do I have to make that a prerequisite of my project? (Though not sure if that will help with my VM problem)