Question

Ok, so I am going through one of the company's websites and trying to clean up the web.config using the ConfigSource attribute on some elements.

One of the biggest areas of the web.config is a list of locations with authorization values for almost all pages on the site.

I cant seem to find a way to put them all in one config, am I really limited to making a configsource for each location element?

Was it helpful?

Solution 2

Looks like they do require a config source each, ah wells. Please let me know if this is incorrect, but I cannot find anything otherwise.

OTHER TIPS

If multiple pages use the same configuration, you can reference the same file in the configSource attribute as illustrated in the my answer to the question Specify more than one directory in Web.Config's Location Path element.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top