one settings file for base dll and windows service

G

Guest

Hello,
I have already spent a whole day on that so some help would be greatly
appreciated.
I have a windows service that in the settings file (created by the designer)
has a bool debug=false
the service uses a base dll with a settings file again with the same debug
key.
When I compile it I see only one settings file and thats fine by me but when
i change its value the dll doesnt read it but keeps the one in its own
settings.
How can I convince the dll to look at the service's settings?

Thanks,
Akis
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

akis said:
Hello,
I have already spent a whole day on that so some help would be greatly
appreciated.
I have a windows service that in the settings file (created by the
designer)
has a bool debug=false

Setting file? Are you talking about the app. conf. file: app.config?
the service uses a base dll with a settings file again with the same debug
key.

IIRC config files are only for executables, not for dlls.
When I compile it I see only one settings file and thats fine by me but
when
i change its value the dll doesnt read it but keeps the one in its own
settings.
How can I convince the dll to look at the service's settings?

Of course you can always include the settings of the dll in the exec's file
config.

If you are in 2.0 the Configuration managemente was vastly improved. you can
now include externals files too. Too bad they need to be fully qualified,
and cannot be relatives.
 

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

Top