Unable to encrypt some sections in web.config

Discussion in 'ASP .Net Security' started by Olivier MATROT, Oct 4, 2007.

  1. 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, Oct 4, 2007
    #1
    1. Advertisements

  2. Michael Nemtsev, Oct 4, 2007
    #2
    1. Advertisements

  3. 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.
     
    Olivier MATROT, Oct 4, 2007
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.