Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Security (http://www.velocityreviews.com/forums/f62-asp-net-security.html)
-   -   Why encryption failed? (http://www.velocityreviews.com/forums/t769068-why-encryption-failed.html)

CAIBird 10-27-2006 08:48 AM

Why encryption failed?
 
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 05:18 PM

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
> -Zhili




CAIBird 10-30-2006 02:33 AM

Re: Why encryption failed?
 
thanks, i get it

"Dominick Baier" wrote:

> 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

>
>
>



All times are GMT. The time now is 06:42 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.