If I have two apps (one is a standard VB.Net EXE, the other is a VB.Net
Windows Service).
The EXE is just a UI to configure the settings for the Service. But, each
one has their own App.Config.
What is the best way to "share" a file so one can write the configuration
information and the other read it?
I hope this made sense.

Signature
Thanks,
Scott
steve - 28 Oct 2004 06:19 GMT
the registry is a very simple solution and is commonly used for this type of
functionality. it only get more complicated from there...i've known people
to even use named pipes for background communication. anyway, hth.
steve
| If I have two apps (one is a standard VB.Net EXE, the other is a VB.Net
| Windows Service).
[quoted text clipped - 6 lines]
|
| I hope this made sense.
CJ Taylor - 28 Oct 2004 15:48 GMT
Why not use a notification icon (like SQL Server Agent) that brings up the
UI and talks to it. 1 application then. no need for the second one or a
second config file..
-CJ
> If I have two apps (one is a standard VB.Net EXE, the other is a VB.Net
> Windows Service).
[quoted text clipped - 6 lines]
>
> I hope this made sense.
Jay B. Harlow [MVP - Outlook] - 28 Oct 2004 19:37 GMT
Scott,
I normally have the UI simply open the service's app.config file
(myservice.exe.config) as an XMLDocument, make any changes, then save it.
My UI then will restart the Service, so the service has a chance to reload
its settings.
My install project installs the UI & the service to the same folder under
\Program Files...
Hope this helps
Jay
> If I have two apps (one is a standard VB.Net EXE, the other is a VB.Net
> Windows Service).
[quoted text clipped - 6 lines]
>
> I hope this made sense.
SQLScott - 30 Oct 2004 17:13 GMT
Jay,
Excellent idea. Thanks for the feedback. Very much appreciated.
Scott
> Scott,
> I normally have the UI simply open the service's app.config file
[quoted text clipped - 19 lines]
> >
> > I hope this made sense.