Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / October 2004

Tip: Looking for answers? Try searching our database.

2 Apps, 1 App.Config file???

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SQLScott - 28 Oct 2004 04:43 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.