PC Review


Reply
Thread Tools Rate Thread

config file for windows service

 
 
Michael
Guest
Posts: n/a
 
      18th Jul 2004
I have a Windows Service developed in .NET. I am using a configuration
file that allows me to get app settings. Now I know I have to the
path for my config file like this
RemotingConfiguration.Configure(@"C:\MyService\MyService.exe.config");

The only problem is, I will be also have remoting settting,
bindingRedirect(future releases of dll files will have me put this.)
setting in my config file. Now, if I put it in C:\MyService the
runtime will not be able to read the runtime settings. So I am
forced to put it into c:\windows\system32 unless someone knows how I
can tell the runtime where to read my config file when using a Windows
Service?


Thanks
Michael
 
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
Windows Service config file Peter Microsoft C# .NET 14 24th Apr 2008 05:31 AM
Using config file with Windows Service. Rico Microsoft VB .NET 3 18th Mar 2007 05:52 PM
How to use an XML config file in Windows Service SP Microsoft C# .NET 5 10th Dec 2004 05:01 PM
Windows service config file Marina Microsoft Dot NET 0 9th Jan 2004 09:11 PM
Windows Service Config file Joe Audette Microsoft Dot NET Framework 1 10th Dec 2003 08:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:33 AM.