Multiple Configuration Files

Is it possible to use multiple configuration files for a WCF service as well as client sides? I know that SvcUtil tool has the functionality to merge the config file. But I am more interested in a master web.config/app.config that can point to zero or more other config files. IIS7 seem to be doing this. Is WCF is also moving in that direction?

This allows for different teams to add their own configuration files with their own add-in components and simply have the master config file to point new config files. This makes configuration process much easier.

Thanks.

[575 byte] By [RRaghu] at [2007-12-22]
# 1

Raghu,

The .Net Framework is only going to try to open one application config file for your application. But config files are just xml files and I can't think of any reason why you wouldn't be able to use the include element to include another xml file (much like including a header file in C++ code).

I hope this is helpful,

Michael Green - MSFT

MichaelGreen-MSFT at 2007-8-30 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...
# 2

I understand that you can customzie the configuration file so that it can point to other configuration files. But this requires extra coding on user part. I was thinking more on the lines of IIS7 and xml schema include attribute. They both work without writing any extra code.

May be .net framework 3.0 need to have a way to include other configuration files in the master configuration file (which resides with application binary)? Since WCF is now called .net framework 3.0, can this multiple configuration files with one master file is a reality?

The bottom line to have extensibiilty in the configuration files area. This may not be the right forum for the question but I wanted to know where WCF is going on this particular topic.

Thanks.

RRaghu at 2007-8-30 > top of Msdn Tech,Visual Studio Orcas,Windows Communication Foundation (Indigo)...

Visual Studio Orcas

Site Classified