I have a project with a .DLL that works properly. When I take this project to another computer the compilation gives me a DllNotFoundException, but the .DLL is there!
Both of pc’s are Windows XP. The difference is that the first one is a normal computer with its graphic card and the other one is a embedded PC in a screen, with the graphic card integrated in the RAM. I don’t know if it has something to do with my problem.
Any help? I am thinking in suicide! ( just kidding
)
you likely forgot to transfer a plugin or the plugin relies on a system component not present (most commonly the VC++ runtime library for example, which gets often installed by “professional software” but on an embedded likely is not present as no such software gets installed there).
if you compiled an unmanaged dll with visualC++ it would be these runtimes for example
Exactly! I compiled the .dll with visualC++, so the problem should be the VC++ runtime library I suposse.
So, how do I fix this? Is a library that I have to copy or something I have to install in the embedded pc?
thanks!
you can download the VC runtime redistributable installer from the microsoft website (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en)
Just ensure that it is the one for the vc version you used, the one above is the 2008 one for example
Nearly solved!
With the VC runtime redistributable did not work. Finally I have downloaded and installed Visual C++ 2008 express edition (the same as in the original computer) and it worked.
I don’t know how to solve the problem without installing VC++ 2008 but for the moment it is fixed.
Thanks for the help!