Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Could not load file or assembly ***.dll or one of its dependencies

$
0
0

Hi,

I have a c#.net windows forms application project which uses a visual c++ (project) dll as a reference existing in the same solution.
The C++ dll is Camlib.dll.
In the configuration manager, C++ project is set to Win32 and c# project is set to x86.
The error "Could not load file or assembly CamLib.dll or one of it dependencies" is thrown only on few machines.
Currently this error is seen on a fresh Windows 10 64 bit machine.

This works fine in my Windows 7 64 bit development machine. There is one more thing what is observed. The same application setup is installed in 2 production laptops with same configuration Win 10 64 bit. In one system MS Office 2013 is installed and the other not. The system in which MS Office is installed, its working, and the other one its not.

I have tried building the C#.net project setting to Any CPU, but the issue persists.
I have also checked Microsoft Visual C++ Redistributable package. Both x86 and x64 versions are installed (Version 11).

(2008, 2010, 2013 versions are present)

I have also used Dependency walker to check for the error. The error what i see is
"GetProcAddress at MSCOREEI.dll [RegisterSimImpICLeanupCallback] returned null from MSCOREE.dll. The specified procedure could not be found". Multiple errors are present with the same MSCOREE.DLL

Is there any supported sdk gets installed while MS Office installation? Or is there any setup which needs to be installed in the production system?

What would be the solution to this? Please help...

Thank you.


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>