I am manipulating a web.config file to add an <authentication mode="xxxx"> element depending on UI choice. I have set the element settings to be
1. element name "authentication"
2. attribute mode="Forms" (or mode="Windows" depending UI choice)
3. "Create element if doesnt exist"
4. "Update first matching if does exist"
but what is happening is that if
<authentication mode="Forms"> exists and i try to replace with <authentication mode="Windows" is that I end up with both !
what I want to achieve is to replace which ever <authentication mode="xxxxx"> with my new one.
FOLLOW US
Get the latest news in Application Packaging