I think something with dependencies, but all the dll that were in the compiled program folder, I transferred to another computer, but the application still does not start. .Net framework, of course, updated. Is there a way to check the problem?
2 answers
If the .Net Framework on computers is the same and all the dll you copied, I assume the following:
- Perhaps the program is expecting a special dll in the GAC.
- It is possible that the program is written with hard-code binding on a certain directory or file structure (for example, the execution is rigidly tied to the presence of a folder along a certain path).
In both cases, the solution is possible if you have access to the source code (find the dependency in the GAC and add the missing library or learn about the "magic folder").
|
Probably, you need to build your project with all dependencies in one package (executable file, if you like). This is done with the help of ILMerge . The process is quite simple, usually limited to using a standard Microsoft BAT script. Read more here .
- I do everything as per the instructions on the link, but an error with code 1 comes out. And it is not clear how to get rid of it. - azaznioo
|