I'm having some issues with a library that cannot find the path of its config file. The reason beeing that my program is deployed in a directory and installed as a service using sc.exe. When trying to locate the file in this case, it looks in System32 and cannot find it.
I can provide a full path to this library to solve the issue, however, how can I reference the folder of the executable called by the service in c# ?