Windows Service vs App.Config

  • Thread starter Thread starter Eric Caron
  • Start date Start date
E

Eric Caron

Hi,

Here's my question, is it possible to have an app.config file in a
windows service ?

Actually, we use a .ini file and I want to use app.config in the
future

Thanks
 
Hi,

Here's my question, is it possible to have an app.config file in a
windows service ?

Actually, we use a .ini file and I want to use app.config in the
future

Thanks

Here's the trick(s):

1. It has to be named project.exe.config, where project=the name of your
project.

2. It has to be located in the directory where the service is running (
NOT WHERE THE PROJECT IS ). It took me a month to figure that out
(!)(!)(!)
 
Back
Top