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

 

Published Monday, January 9, 2006 5:57 PM by ScottGu

Comments

# re: ASP.NET 2.0 Membership and Role Management Remote Admin Tool

Tuesday, January 10, 2006 3:21 AM by Simone
Great... that's what I was looking for!!!

# re: ASP.NET 2.0 Membership and Role Management Remote Admin Tool

Tuesday, January 10, 2006 10:05 AM by scottgu
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

# re: ASP.NET 2.0 Membership and Role Management Remote Admin Tool

Tuesday, January 10, 2006 7:57 PM by Doug
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.

# re: ASP.NET 2.0 Membership and Role Management Remote Admin Tool

Wednesday, January 11, 2006 12:50 AM by scottgu
Hi Doug,

Unfortunately I don't know of any samples to remote profile information yet -- although I believe you should be able to use the approach in Juval's article for profile data as well.

We are planning at somepoint in the future to expose the core ASP.NET Application Services for remote clients (for example: WinForms and Avalon) to use as well. We don't have an ETA for this just yet, but it is on our list of things to-do.

Hope this helps,

Scott

# re: ASP.NET 2.0 Membership and Role Management Remote Admin Tool

Wednesday, August 2, 2006 1:38 AM by ScottGu

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

# re: ASP.NET 2.0 Membership and Role Management Remote Admin Tool

Thursday, August 3, 2006 11:33 AM by ScottGu

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

# re: ASP.NET 2.0 Membership and Role Management Remote Admin Tool

Wednesday, August 30, 2006 6:02 PM by Bruce Krasnof
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

# re: ASP.NET 2.0 Membership and Role Management Remote Admin Tool

Thursday, August 31, 2006 1:53 AM by ScottGu

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

# re: ASP.NET 2.0 Membership and Role Management Remote Admin Tool

Wednesday, December 27, 2006 10:14 PM by ScottGu

Hi John,

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

Thanks,

Scott

# re: ASP.NET 2.0 Membership and Role Management Remote Admin Tool

Friday, December 29, 2006 6:33 PM by Rohan

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

# re: ASP.NET 2.0 Membership and Role Management Remote Admin Tool

Saturday, December 30, 2006 11:41 AM by ScottGu

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