5
Reply

dllnotfoundexception when trying to install c# application on a different computer

Justin Bode

Justin Bode

Dec 6 2010 1:40 PM
5.2k

I have written a c# application using .net 3.5 that uses a dll I wrote in c. On my development computer i have been able to create an installer, install and run the application without any problems. However, when I run the same installer on another computer that does not have microsoft visual studio 2010 on it, I get a dllnotfoundexception and the application crashes. The program runs fine on all computers that have visual studio 2010 installed (At least that I have tested).
Dependency walker says that two dll's are at fault. ieshims.dll and wer.dll. Both of these dll's are not found on the target computer. This is where it starts getting weird for me. ieshims.dll and wer.dll are also not found on my development computer which runs the application just fine. I have tried running process monitor to see where the fault is but am having trouble discerning what is the actual fault that causes the program to crashes.
On the target computer I have tries reinstalling .net 3.5, installing the visual studio runtime libraries, and updating the system with the latest microsoft updates.
Both computers are windows xp service pack 3.
I am using a trial license of visual studio 2010 while my company purchases a license for me.
This is all the information I can think of that's peritent to the problem. If someone could please help me figure out why my application won't run on a computer that doesn't have visual studio 2010 installed.

Answers (5)