I have an assembly that reads a configuration file which is in the application directory.
This assembly is used from a windows service and a web service.
From th
Why do you not just check if the config file exists in
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "MyFile.config");
and if it does not you check here:
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin\MyFile.config");
Hopefully I understood the description of the behaviour in the "webservice case" correctly.