Why encryption failed?

Discussion in 'ASP .Net Security' started by CAIBird, Oct 27, 2006.

  1. CAIBird

    CAIBird Guest

    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
     
    CAIBird, Oct 27, 2006
    #1
    1. Advertising

  2. 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
     
    Dominick Baier, Oct 27, 2006
    #2
    1. Advertising

  3. CAIBird

    CAIBird Guest

    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

    >
    >
    >
     
    CAIBird, Oct 30, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sck10
    Replies:
    6
    Views:
    925
    sck10
    Sep 1, 2006
  2. Mr. SweatyFinger

    why why why why why

    Mr. SweatyFinger, Nov 28, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    917
    Mark Rae
    Dec 21, 2006
  3. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,033
    Smokey Grindel
    Dec 2, 2006
  4. kiran
    Replies:
    5
    Views:
    3,439
  5. Tony Johansson
    Replies:
    3
    Views:
    16,274
    Patrice
    Jan 2, 2010
Loading...

Share This Page