PC Review


Reply
Thread Tools Rate Thread

2 Apps, 1 App.Config file???

 
 
=?Utf-8?B?U1FMU2NvdHQ=?=
Guest
Posts: n/a
 
      28th Oct 2004
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.

--
Thanks,

Scott
 
Reply With Quote
 
 
 
 
steve
Guest
Posts: n/a
 
      28th Oct 2004
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


"SQLScott" <(E-Mail Removed)> wrote in message
news943AF66-5EFD-4487-AF39-(E-Mail Removed)...
| 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.
|
| --
| Thanks,
|
| Scott


 
Reply With Quote
 
CJ Taylor
Guest
Posts: n/a
 
      28th Oct 2004
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

"SQLScott" <(E-Mail Removed)> wrote in message
news943AF66-5EFD-4487-AF39-(E-Mail Removed)...
> 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.
>
> --
> Thanks,
>
> Scott



 
Reply With Quote
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      28th Oct 2004
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

"SQLScott" <(E-Mail Removed)> wrote in message
news943AF66-5EFD-4487-AF39-(E-Mail Removed)...
> 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.
>
> --
> Thanks,
>
> Scott



 
Reply With Quote
 
=?Utf-8?B?U1FMU2NvdHQ=?=
Guest
Posts: n/a
 
      30th Oct 2004
Jay,

Excellent idea. Thanks for the feedback. Very much appreciated.

Scott

"Jay B. Harlow [MVP - Outlook]" wrote:

> 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
>
> "SQLScott" <(E-Mail Removed)> wrote in message
> news943AF66-5EFD-4487-AF39-(E-Mail Removed)...
> > 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.
> >
> > --
> > Thanks,
> >
> > Scott

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access to the path "D:\Kevin's Web Apps\InternalSPHIR\Config\Resource.Config" is denied. KQ Microsoft ASP .NET 1 27th Oct 2004 11:25 AM
Share config between sub web apps Martin Microsoft ASP .NET 1 11th Jul 2004 04:42 AM
Web.config best practices in ASP.NET apps? Ronald S. Cook Microsoft C# .NET 0 26th Apr 2004 03:50 PM
Re: sharing web.config across apps John Saunders Microsoft ASP .NET 0 17th Mar 2004 10:30 PM
config files question for console apps / windows apps jai hanuman Microsoft Dot NET Framework Forms 2 15th Mar 2004 08:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:55 PM.