When I create a .NET Windows Service, there is an App.config
file. When I compile the service, it creates a ServiceName.exe.config
in the bin directory and there is also a ServiceName.vshosts.exe.config
Q1) What is the significance of multiple config files?
When I change a setting in the App.config it does not take effect until I uninstall the service, recompile it and reinstall the service. I tried making the setting change in both App.config
as well as ServiceName.exe.config
with no luck.
Q2) My understanding was that a config file makes it easier to make setting changes without having to redeploy the service.
Any response is appreciated