Re: Why encryption failed?



System.Net is not a section but a SectionGroup -

you can only encrypt sections (the stuff that's under system.net)

---
Dominick Baier, DevelopMentor
http://www.leastprivilege.com

hi,

i'm trying to encrypt a present section in web.config named
"system.net" using following command line:

aspnet_regiis.exe -pef "system.net" C:\site

i get failed everytime i execute it, getting a error"The configuration
section 'system.net' was not found". i'm almost crazy, this section is
there.

And if i excute:

aspnet_regiis.exe -pef "connectionStrings" C:\site

i succeed. but what's difference?

thanks
-Zhilin


.



Relevant Pages

  • Re: Membership - how to change from clear-text to encrypted?
    ... Dominick Baier - DevelopMentor ... We're looking to encrypt the existing ... old and new to encrypted passwords. ... how the membership system derives the encrypted passwords so that we ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: path to aspnet_regiis
    ... There is also an API to encrypt configuration settings..look at WebConfigurationManager in System.Web.Configuration. ... Dominick Baier ... In our installer ... It strikes me that writing the unencrypted connection string to ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Eccrypt web.config
    ... IIRC - there are situations where you can't encrypt this element - but give it a try... ... Dominick Baier ... Encrypting configuration section... ...
    (microsoft.public.dotnet.security)