Hi guys, I need your help. I have recently been learning this beautiful language on my own (C #), and collecting stones.

The problem is that the application refuses to run on another computer. The reason is in the third-party DLL file that I use.

I connected it with a link, everything works fine in the project, it starts up and works correctly for me. But when I try to run on another computer, the program sends me, with the words: "The program has been terminated", the name of the problem event: CLR20r3. Although the DLL file lies with the exe-shnik.

Help in solving this problem!

Thanks in advance!)

Connect the DLL as a link The program works correctly when debugging

  • 3
    It may well be that this DLL file needs something else, which is not on another machine. - Vladimir Martyanov
  • Are you exactly on another computer program with dll copy? - Qwertiy
  • 2
    Look at the dependencies of the dll you are referring to. - Vadim Prokopchuk
  • Qwertiy - Yes, I tried it this way and that. The window always appears: "The program has been terminated" - Oneills

1 answer 1

I thank the respondents. Indeed, the library has dependencies, I had to install the application on a third-party computer, and it all worked.

The decision is bad - so I will look for another version of the implementation of the functional.

Well, at least I even figured out what the problem was.

Thanks to all.

  • one
    Yes, more precisely, the problem is that you use interop - this is not a “real” library, but a wrapper over a COM component. Which must be separately set and registered. Try to find a clean .net implementation, without com / activex inside. - PashaPash
  • one
    ... or install during the installation of the COM component. Or at least put a COM dll in the directory and configure SXS. - VladD