Groups | Blog | Home
all groups > asp.net security > october 2007 >

asp.net security : Unable to encrypt some sections in web.config


Michael Nemtsev
10/4/2007 12:00:00 AM
Hello Olivier,

See there the discussion http://www.derkeiler.com/Newsgroups/microsoft.public.dotnet.framework.aspnet.security/2006-04/msg00205.html

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


OM> identity
OM>

Olivier MATROT
10/4/2007 12:31:02 AM
Hello,
I would like to encrypt configuration sections with "aspnet_regiis" and
"-pef" option.
This is working fine for most of the sections I'm interested in, for
instance <appSettings> and <connectionStrings>.
This is not working for the <identity> section. The tool claims that the
section could not be found... :
"The configuration section 'identity' was not found.
Failed!"
Of course the section does exists and the site is running as expected.
I also would like to encrypt <roleManager>, <membership> and <profile>. This
is not working, it is failing with the same reason.
Any help appreciated.
TIA.

Olivier MATROT
10/4/2007 5:32:01 AM
Found the solution.
The <identity> element is nested under the section <system.web>, so it must
be prefixed accordingly.
This is working fine with "system.web/identity" in the command line.
Could be applied to the others sections as well.

[quoted text, click to view]
AddThis Social Bookmark Button