Asp.net membership security in VB.net?

Discussion in 'ASP .Net' started by Karl, Jun 5, 2006.

  1. Karl

    Karl Guest

    We have an application that uses the new ASP.Net 2.0 membership
    security, but we are writing the backoffice administration for it in
    vb.net as an in house product.

    We would like to be able to create users using batch file from our
    customers and in doing this we will need to access the new asp.net
    membership security from vb.net 2005.

    I have created a reference to system.web and can see all the classes
    and members but there doesnt seem to be anyway of setting the correct
    provider etc so I cant create users etc as there is no way to tell it
    where to create them !

    If anyone knows if this is possible or not I would appreciate it. If it
    is possible, could someone drop me a small sample of code on how to
    configure the provider to connect to the correct DB?

    Thanks
    Karl, Jun 5, 2006
    #1
    1. Advertising

  2. Karl

    Karl Guest

    Re: Asp.net membership security in VB.net?

    Sorted it.

    Add web.config style provider and membership/role information to the
    app.config file. This needs to be wrapped in the system.web tags.


    Karl wrote:
    > We have an application that uses the new ASP.Net 2.0 membership
    > security, but we are writing the backoffice administration for it in
    > vb.net as an in house product.
    >
    > We would like to be able to create users using batch file from our
    > customers and in doing this we will need to access the new asp.net
    > membership security from vb.net 2005.
    >
    > I have created a reference to system.web and can see all the classes
    > and members but there doesnt seem to be anyway of setting the correct
    > provider etc so I cant create users etc as there is no way to tell it
    > where to create them !
    >
    > If anyone knows if this is possible or not I would appreciate it. If it
    > is possible, could someone drop me a small sample of code on how to
    > configure the provider to connect to the correct DB?
    >
    > Thanks
    Karl, Jun 8, 2006
    #2
    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. ABC
    Replies:
    5
    Views:
    576
    Scott Allen
    Nov 23, 2005
  2. jobs
    Replies:
    0
    Views:
    826
  3. Tino Donderwinkel
    Replies:
    2
    Views:
    743
    Tino Donderwinkel
    Jun 18, 2008
  4. Roar Nestegard

    ASP.NET 2.0 security with two membership providers

    Roar Nestegard, Feb 21, 2005, in forum: ASP .Net Security
    Replies:
    0
    Views:
    129
    Roar Nestegard
    Feb 21, 2005
  5. jobs
    Replies:
    0
    Views:
    234
Loading...

Share This Page