I've got a little problem with my WCF service running under the IIS. My service uses third party libraries. This lib for initialization needs the configuration file that contains paths to the query files. Running under the IIS this lib cannot deal with the relative paths of the query files i.e.: .\Config\Lib_query.txt etc. From my understanding reason is that the service is running under do w3wp process. There is no problem with running this on self-host or even in unit tests.
Is there any way of telling IIS to run under different context? Using AppDomain. CurrentDomain. BaseDirectory etc. isn't an option because I have no power inside those libs. So far I was using the fixed path, but we're moving to distributed environment and not replacing path in config path will be a huge convenience.