config file for windows service

From: Michael (mastrauckas_at_pparadise.biz)
Date: 07/18/04


Date: Sun, 18 Jul 2004 16:10:38 GMT

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



Relevant Pages

  • RE: Publish to External FrontPage Server
    ... meaning Auto config, use proxy I am able to connect to the remote website. ... How can I make this work without having to disable the IE settings everytime ... Publish to External FrontPage Server ...
    (microsoft.public.isa)
  • Re: Justified moaning?, I like to think so.
    ... I might have guessed you were going to ask for the steps to reproduce ... caching the settings for the current project and then either: ... Erroneously combining the new config with what's cached in some way ... new projects default to either Debug or Release and are those default ...
    (borland.public.delphi.non-technical)
  • Re: IPPhone provisioning in CE 6 R2
    ... the device will pickup and autoupdate the config. ... // check where we should get bootstrap server info from ... FTP server. ... But still the device didnt apply the settings as i think i had made ...
    (microsoft.public.windowsce.embedded)
  • Re: appsetting in class doesnt work
    ... configuration and putting application scope settings in the file by using ... First the config file: ... Public Sub SetTestsetting() ... of TestSetting in app config file ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How to log errors occured in nested packages
    ... > and execution settings to a process execution log table. ... >> That's a nice idea (Having a config type Table to track packages ... >>>package so that when the job executes it can check your config table to ...
    (microsoft.public.sqlserver.dts)