Override one attribute in machine.config file
I was wondering if it is possible to override just the tag attribute in machine.config?
More precisely, I want to set the domain attribute in the machine.config file as it is different from my production server and my development server.
I tried just adding the tag to the machine.config but alas it doesn't seem to be the effect.
in machine.config I added:
<authentication>
<forms domain=".foo.com" />
</authenticaion>
EDIT:
Since web.config overrides machine.config, the question is, how do I not lose the domain attribute in the tag when the forms are also defined in the web.config?
a source to share
You can override the values of your machine.config by entering values in the web.config. Web.config and machine.config will be merged at runtime. But web.config will override the configured values in the web.config file.
Ok, if you don't use the authentication section of your web.config, your machine.config entry is used.
a source to share