one settings file for base dll and windows service

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
Back
Top