H
headware
I have an ASP.NET application and I need to create a Windows service
that is related to it. I would like to share some of the configuration
file settings in Web.config between the two. There are configuration
items in the <appSettings>, <connectionStrings> and
<system.web><mailSettings></system.web> sections that I need to be
able to access in the Windows service.
I know that some parts of config files allow you to specify an outside
file as the source but <connectionStrings> and <systemweb> don't
appear to allow this.
I could just parse the Web.config file from the Windows service but
isn't there some built in support for this? Can you load an external
config file somehow?
Thanks,
Dave
that is related to it. I would like to share some of the configuration
file settings in Web.config between the two. There are configuration
items in the <appSettings>, <connectionStrings> and
<system.web><mailSettings></system.web> sections that I need to be
able to access in the Windows service.
I know that some parts of config files allow you to specify an outside
file as the source but <connectionStrings> and <systemweb> don't
appear to allow this.
I could just parse the Web.config file from the Windows service but
isn't there some built in support for this? Can you load an external
config file somehow?
Thanks,
Dave