T
TomB
I've written a simple service that reads the app.config file on start.
It works fine if I start it from the VS IDE -- F5 then installutil
I then created a package, wherein the content of app.config has "" for the
values. With the idea that my user, can enter the information before
starting the service. However; this doesn't work. I'm very confused.
As a test, I "emptied" the app.config file and rebuilt, then did an
installutil. This recreated the error, however; if I did an installutil /u
changed the app.config file (in the bin) and re-installutil-ed it - it
worked.
I then tried installing the app using the package I created. I then went to
that directory and tried the above (uninstall, edit, reinstall) without
luck.
My purpose in using the app.config file, is to point the service to the
location of a different configuration file (as I need the service to monitor
that file)
I'm quite sure it isn't a problem with my code, but would be happy to post
it if necessary.
Am I right that the app.config file is read once, when the service starts?
Or just when it's installed (which seems pointless)
I've been hunting around google and msdn, but not having any luck.
Thanks
TomB
It works fine if I start it from the VS IDE -- F5 then installutil
I then created a package, wherein the content of app.config has "" for the
values. With the idea that my user, can enter the information before
starting the service. However; this doesn't work. I'm very confused.
As a test, I "emptied" the app.config file and rebuilt, then did an
installutil. This recreated the error, however; if I did an installutil /u
changed the app.config file (in the bin) and re-installutil-ed it - it
worked.
I then tried installing the app using the package I created. I then went to
that directory and tried the above (uninstall, edit, reinstall) without
luck.
My purpose in using the app.config file, is to point the service to the
location of a different configuration file (as I need the service to monitor
that file)
I'm quite sure it isn't a problem with my code, but would be happy to post
it if necessary.
Am I right that the app.config file is read once, when the service starts?
Or just when it's installed (which seems pointless)
I've been hunting around google and msdn, but not having any luck.
Thanks
TomB