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
(!)(!)(!)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top