Re: Big Web.Config



Hmm, cool. I've never seen this before.

Google finds:

http://odetocode.com/Articles/345.aspx, a blog post by K. Scott Allen.

From Scott's example:

1 <?xml version="1.0" encoding="utf-8" ?>
2 <configuration> 3 <system.web>
4 <compilation defaultLanguage="c#" debug="true" />
5 </system.web>
6 7 <appSettings file="testlabsettings.config"/>
8 9 </configuration>

One note he mentions:

"One caveat to this approach is that the ASP.NET runtime does not detect when the external file changes. You’ll need to make changes to web.config itself for ASP.NET to launch a new version of the application with all changes in effect."

Thanks for the tip, Gregory!

-dl

--
David Longnecker
Web Developer
Wichita Public Schools, USD 259

In 2.0 you can have additional configuration files linked to the
config file. I do not have an example readily available, however. If I
get a bit more downtime, I will find a link.

*************************************************
Think outside of the box!
*************************************************
"Navnit" <Navnit@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2E479CD8-295A-4066-9F7F-42F56AF1CDE0@xxxxxxxxxxxxxxxx
Hello All,

I have a ASP.net 2.0 web application where the Web.Config has gone
really huge.

This creates a lots of maintanence and deployment problems.

Is there any way to break the web.config file into multiple file or
something like that?

Thanks...



.


Loading