I have a WPF application that runs fine on a Windows 10 x 64 development machine and a basic Windows 10 x64 VM. When put on a customer machine get an exception saying:
DispatcherUnhandledEvent: Could not load file or assembly 'CLRWrapper.dll' or one of its dependencies. The specified module could not be found.
A dependency walk shows the following dependencies:
VCRUNTIME140D.DLL
ucrtbased.dll
MSVCP140D.dll As missing. Placing anyone of those DLLs into System32, SysWOW64 or in the root folder for the application results in the following error:
Could not load file or assembly 'CLRWrapper.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
Why is this causing this error? The application did not run in the VM until I placed these DLLs into the System32 and SysWOW64 folders.
Anybody have any ideas?
TIA, Doug