I have a Windows Service which runs a Web Service code in a library. The structure is like this:
MyWindowsService.exe (references to MyServiceLibrary.dll)
MyWindowsService.exe.config
MyServiceLibrary.dll (references to web service)
MyServiceLibrary.dll.config (contains endpoint information about the web service)
The process is like this:
MyWindowsService calls MyServiceLibrary.Method()
MyServiceLibrary.Method() calls WebService.Method()
The problem is I'm getting an error about not able to find any endpoints for MyServiceLibrary unless I add information to MyWindowsService.exe.config too. Is there a way to prevent this? I'd like keep config files seperate from each other if possible.