Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
AnswerRe: Number of processors Pin
Hessam Jalali19-Aug-07 11:04
Hessam Jalali19-Aug-07 11:04 
GeneralRe: Number of processors Pin
Jay Gatsby19-Aug-07 13:40
Jay Gatsby19-Aug-07 13:40 
QuestionUrgent help requested Pin
T.D.Prasad19-Aug-07 9:57
T.D.Prasad19-Aug-07 9:57 
AnswerRe: Urgent help requested Pin
Judah Gabriel Himango19-Aug-07 11:31
sponsorJudah Gabriel Himango19-Aug-07 11:31 
QuestionChanging the style of a combobox Pin
WBurgMo19-Aug-07 9:25
WBurgMo19-Aug-07 9:25 
AnswerRe: Changing the style of a combobox Pin
Mustafa Ismail Mustafa19-Aug-07 10:11
Mustafa Ismail Mustafa19-Aug-07 10:11 
QuestionUnable to attach to application 'Web.Dev.WebServer.Exe'. Pin
T4AMD19-Aug-07 9:04
T4AMD19-Aug-07 9:04 
Questionconfiguration file Pin
MarioMARTIN19-Aug-07 8:44
MarioMARTIN19-Aug-07 8:44 
Hi all,

I have a project that consist of several applications (Windows Services and WPF applications communicating via WCF). All applications need certain configuration information, that should be stored in a central / common file.

One application should also be able to write to this config file and the other apps should automatically notice these changes and read in the new values.

Now I'm looking for a way to realize that. I tried a FileSystemWatcher on a "normal" xml file (not a .Net configuation file) in connection with a Mutex to ensure that no application tries to read the file while another application is writing.

It didn't work (The Mutex seemed to be useless, I always got an exception that told me that the file could not be opened because it is already opened by another process).

Any ideas how I could implement this stuff? Should I stay by my "normal" xml file or should I switch to an .Net configuration based approach?

thanks and regards,

MMartin
AnswerRe: configuration file Pin
Christian Graus19-Aug-07 11:28
protectorChristian Graus19-Aug-07 11:28 
GeneralRe: configuration file Pin
MarioMARTIN19-Aug-07 20:00
MarioMARTIN19-Aug-07 20:00 
GeneralRe: configuration file Pin
MarioMARTIN19-Aug-07 20:26
MarioMARTIN19-Aug-07 20:26 
GeneralRe: configuration file Pin
MarioMARTIN19-Aug-07 22:02
MarioMARTIN19-Aug-07 22:02 
Questionparallel programming and multi threading in the Apllication layer Pin
sianatia19-Aug-07 8:11
sianatia19-Aug-07 8:11 
QuestionChange language Pin
Zhendalf19-Aug-07 5:14
Zhendalf19-Aug-07 5:14 
AnswerRe: Change language Pin
Giorgi Dalakishvili19-Aug-07 7:07
mentorGiorgi Dalakishvili19-Aug-07 7:07 
AnswerRe: Change language [modified] Pin
Hessam Jalali19-Aug-07 7:25
Hessam Jalali19-Aug-07 7:25 
GeneralRe: Change language Pin
Zhendalf19-Aug-07 9:00
Zhendalf19-Aug-07 9:00 
GeneralRe: Change language Pin
Zhendalf19-Aug-07 9:05
Zhendalf19-Aug-07 9:05 
Generaltelnet Pin
otrpgglk19-Aug-07 2:39
otrpgglk19-Aug-07 2:39 
QuestionRegex.Replace several items? Pin
hootie_dk19-Aug-07 2:39
hootie_dk19-Aug-07 2:39 
AnswerRe: Regex.Replace several items? Pin
Paul Conrad26-Aug-07 9:18
professionalPaul Conrad26-Aug-07 9:18 
QuestionResource Problem Pin
Rick van Woudenberg19-Aug-07 2:28
Rick van Woudenberg19-Aug-07 2:28 
AnswerRe: Resource Problem Pin
Paul Conrad19-Aug-07 4:06
professionalPaul Conrad19-Aug-07 4:06 
Questionhello Pin
chehreghany19-Aug-07 1:28
chehreghany19-Aug-07 1:28 
AnswerRe: hello Pin
Hessam Jalali19-Aug-07 2:26
Hessam Jalali19-Aug-07 2:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.