ASP.NET 2.0 Membership and Role Management Remote Admin Tool

Peter Kellner has a good article on the new ASP.NET 2.0 Membership and Roles Features, and then put together a very useful sample that demonstrates how to implement a set of admin data-pages on top of the ASP.NET 2.0 Membership and Role Management system to allow you to remotely administer your users and roles.  His sample is available to download in source format -- so you can integrate it within your applications to provide a remote management experience for users/roles that works well in a hosting environment.

Update: Check out Juval's article and sample code on how to accomplish the same thing using a Windows Forms front-end and web-services.  Very slick!

Updated: Juval has updated his code again to support three options:

1) The version mentioned in the magazine

2) A WCF (Indigo) version hosted in IIS

3) A WCF (Indigo) version with a custom server host in case IIS isn't an option

You can download all three versions here: http://www.idesign.net/idesign/temp/CredentialsManager.zip

Hope this helps,

Scott

 

10 Comments

  • Great... that's what I was looking for!!!

  • Hi Christian,



    Thanks for sending me a pointer to that -- I had actually missed that article. It is great! I'll update this posting and make another posting to it as well.



    Thanks,



    Scott

  • Hi Scott,



    I will take a look a Juval's remote admin tool, yet what I am really looking for is a remotable custom profile provider using .net remoting. Know of any samples out there? Thanks.

  • Hi Shalvin,

    What runtime errors are you seeing? I haven't heard of anyone experiencing these -- and there are several sites with 100,000+ users using them.

    Thanks,

    Scott

  • Hi Shalvin,

    The errors below look like you might be trying to use a different version of the database schema from the final one that shipped.

    The schema changed from Beta2->RTM. You mentioned above that you started usign it with Beta2. Could it be that you didn't recreate the database for RTM?

    Thanks,

    Scott

  • Scott, I tried installing Cassini on win2003, I was hoping to launch those admin pages for managers users, roles, etc. since they appear to be in the framework folder.

    Any advice on how to simulate the admin pages you get from vwd express on a win2003 server that doesn't have vwd express?

    thanks,
    Bruce

  • Hi Bruce,

    Here is more up to date version of the above articles that you might want to checkout: http://weblogs.asp.net/scottgu/archive/2006/07/18/Remote-Membership_2F00_Roles-Management-of-ASP.NET-2.0-Applications.aspx

    Hope this helps,

    Scott

  • Hi John,

    Can you send me an email on this? I'll then loop in someone who can help you.

    Thanks,

    Scott

  • Hi Scott,

    I tried to integrate the out-of-the-box Asp.Net Web Site Administration Tool with a web application. Things were going well untill I hosted the web application on a server and tried to remotely connect to the administrator tool. That's when I got an error "This tool cannot be remotely accessed."

    Now is there a way to overcome this?

    Thanks,
    Rohan

  • Hi Rohan,

    The built-in web admin tool in ASP.NET doesn't support remote hosting for security reasons.

    This blog post, though, points to a web admin tool that you can use to accomplish the same tasks (and even more): http://weblogs.asp.net/scottgu/archive/2006/07/18/Remote-Membership_2F00_Roles-Management-of-ASP.NET-2.0-Applications.aspx

    Hope this helps,

    Scott

Comments have been disabled for this content.