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

asp.net security : Why encryption failed?


CAIBird
10/27/2006 1:48:02 AM
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
Dominick Baier
10/27/2006 5:18:28 PM
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

[quoted text, click to view]

CAIBird
10/29/2006 6:33:01 PM
thanks, i get it

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