Declaration of myPrincipal

Discussion in 'ASP .Net Security' started by david, Apr 7, 2005.

  1. david

    david Guest

    I got error at Implements IPrincipal when I want declare my own principal.
    Any boy can tell me why?

    Thanks

    Imports System.Security.Principal
    Imports System
    Imports System.security
    Imports System.Object




    Public Class myPrincipal Implements IPrincipal


    End Class
    david, Apr 7, 2005
    #1
    1. Advertising

  2. david

    Joseph MCAD Guest

    April 7, 2005

    You must place the Implements IPrincipal below the Class Declaration. Use
    this instead:

    Imports...
    .....

    Public Class myPrincipal
    Implements IPrincipal

    End Class

    Hope this solves it!

    Joseph MCAD


    "david" <> wrote in message
    news:...
    >I got error at Implements IPrincipal when I want declare my own principal.
    > Any boy can tell me why?
    >
    > Thanks
    >
    > Imports System.Security.Principal
    > Imports System
    > Imports System.security
    > Imports System.Object
    >
    >
    >
    >
    > Public Class myPrincipal Implements IPrincipal
    >
    >
    > End Class
    Joseph MCAD, Apr 7, 2005
    #2
    1. Advertising

  3. david

    david Guest

    Thank you very much.
    VB is new for me.


    "Joseph MCAD" wrote:

    > April 7, 2005
    >
    > You must place the Implements IPrincipal below the Class Declaration. Use
    > this instead:
    >
    > Imports...
    > .....
    >
    > Public Class myPrincipal
    > Implements IPrincipal
    >
    > End Class
    >
    > Hope this solves it!
    >
    > Joseph MCAD
    >
    >
    > "david" <> wrote in message
    > news:...
    > >I got error at Implements IPrincipal when I want declare my own principal.
    > > Any boy can tell me why?
    > >
    > > Thanks
    > >
    > > Imports System.Security.Principal
    > > Imports System
    > > Imports System.security
    > > Imports System.Object
    > >
    > >
    > >
    > >
    > > Public Class myPrincipal Implements IPrincipal
    > >
    > >
    > > End Class

    >
    >
    >
    david, Apr 7, 2005
    #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. Noah
    Replies:
    5
    Views:
    947
  2. Alex Vinokur
    Replies:
    4
    Views:
    573
    Jonathan Turkanis
    Apr 5, 2004
  3. Ovidesvideo
    Replies:
    4
    Views:
    483
    Andrey Tarasevich
    Dec 10, 2004
  4. kelvSYC
    Replies:
    6
    Views:
    7,213
    Richard Herring
    May 17, 2005
  5. Replies:
    4
    Views:
    1,051
    Richard Tobin
    Dec 12, 2006
Loading...

Share This Page