Why encryption failed?

C

CAIBird

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
 
D

Dominick Baier

System.Net is not a section but a SectionGroup -

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

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top