Kind of a silly question- but can someone point me to where the config file for a .NET-based Windows service gets placed? I'm using installutil
to install the service, and it's able to read from its config file just fine, but a search of the disk hasn't revealed where the file was installed to.
I need to know because I want to edit the config file without reinstalling the service.
installutil doesn't move the assembly. So if you run installutil on C:\Foo\Bar\MyService.exe, it's going to read the configuration from C:\Foo\Bar\MyService.exe.config.
Of course, you'll have to restart the service after changing the config. Shouldn't need to reinstall it, though.