I've created a CLR (Class Library) project on Visual Studio 2017 to get a DLL for C++ code to be used by several windows services visual studio 2017 projects developed on C#. The developed windows services work fine on the development PC but they don't work in the customer PCs.
The services finished immediately and you can track the error below on the windows event manager.
Application: PcAmpel.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileNotFoundException at Code.Anwendung() at System.Threading.ThreadHelper.ThreadStart_Context(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) at System.Threading.ThreadHelper.ThreadStart()
I've found on the web about similar problems, but either the information is too poorly explained or wrong or the link fixes being provided by Microsoft have been removed.
A good advice would be very much appreciated.
Best, Marcos
What I have tried:
I've tried installing every .NET Framework and any distributable Visual Studio packages, but nothing helped, I've found, that after installing Visual Studio 2017 on the customer PC, every windows service can be started and works fine, but this is not a solution. I've contacted Microsoft virtual chat and scheduled two phone calls at different days but their help is a joke and waste of time. You are being passed from one employee to other and at the end, the phone call is off.