Friday, February 08, 2008 1:10 PM rrobbins

Membership, Profile & Role Management Frustration

I've been migrating a classic ASP web application to ASP.NET 2.0. I'm converting the existing user management system to the ASP.NET 2.0 profile, roles, and membership API because it is the new standard. However, I have been frustrated by the lack of a back end user management system. Microsoft provided the Web Site Administration Tool which can be invoked in Visual Studio during development but you can't use that as part of your web application management back end. There really should have been a pre-built user management tool to include in your project.

I've been working on my own set of pages to manage users, profiles, and roles but I suspected that I was duplicating work that many other developers have done. Yesterday I tried using the Membership Editor that Peter Kellner developed. It was written in C# and I'm using VB because the ASP web application is in VBScript. Fortunately, I was able to copy the C# classes into my App_Code directory without doing a conversion because you can mix C# and VB code using seperate folders in that directory. All I had to do was convert the Membership.aspx code behind page to VB. This is certainly an improvement over my set of custom pages.

Today I searched for open source projects that might address this need. On CodePlex I found a few promising projects:

1. http://www.codeplex.com/sbMembershipSuite this seems to be an AJAX solution. AJAX is a bit fancy for a back end site. I would only consider AJAX for a public web site, but I'll take AJAX as long as I'm not writing the code! There is also some talk of MVP and unit tests which may make it too complicated for my skill level.

2. http://www.codeplex.com/IAAA - the screenshots show a very nice design. Also seems to be using some AJAX.

3. http://www.codeplex.com/CodeFxMySqlProvider - role, profile, and membership providers for MySQL.

I agree with the comment I found on the first open source project, "It is a common use case to desire having non technical people provided access to membership administration. I am, frankly, surprised there is nothing from the mothership." This is a perfect opportunity for the ASP.NET community to come together and create a tool to meet a real need. Creating the user management administration is just a tedious chore, simple CRUD work, that has little commercial value. It should be provided as an open source solution available to every ASP.NET developer.

Unfortunately I don't see any evidence of collaboration on these CodePlex projects. They all have a single developer listed. It would be a shame if there is little collaboration among ASP.NET developers. That would mean we just don't get it. The whole point of community is to put the wisdom of the crowd to work finding solutions to common problems. We should not be wasting our time duplicating the same effort. I'm sure PHP developers don't need to write a lot of code from scratch because they have a wealth of open source web applications with plenty of modules and plugins.

That reminds me that this web application will be sharing a database with DotNetNuke which also uses the ASP.NET 2.0 role, membership, and profile API. It may be possible to manage users with its tools.

Filed under: , , ,

Comments

# Membership, Profile

Friday, February 08, 2008 3:02 PM by DotNetKicks.com

You've been kicked (a good thing) - Trackback from DotNetKicks.com

# re: Membership, Profile & Role Management Frustration

Friday, February 08, 2008 4:27 PM by tony testa

Good post.

I frankly have never really worked with the ASP.NET membership provider for various reasons, but have finally now had to dive into it more since a lot of client projects that i consult on are already using it.

I was thinking of leveraging some of the OR/M tools i've been tinkering with lately and using them to make a quick and dirty front-end.  If your looking to make something yourself, I'd suggest looking into SubSonic  or LINQ to SQL.....both are great, easy to use, and you can probably have something up and running for yourself in less than a day.  

# re: Membership, Profile & Role Management Frustration

Friday, February 08, 2008 5:04 PM by Danny Douglass

I've gone down this same route before.  It is incredibly frustrating how little OS code is available for the administration of these awesome providers.

Now I'm on for a search on a decent ASP.NET/C# Photo Gallery (ideally that uses AJAX .NET 3.5)...don't know of any do you?

# re: Membership, Profile & Role Management Frustration

Saturday, February 09, 2008 3:01 PM by Dave White

Have you tried the QualityData Membership Manager?

www.qualitydata.com/.../Default.aspx

# re: Membership, Profile & Role Management Frustration

Sunday, February 10, 2008 1:33 PM by Brian Sullivan

I feel your pain, man.  I'm converting a classic ASP site to ASP.NET right now, too.  Of course, the backend database is DB2 and we need to stick to the existing set of custom tables, so I'm having to create my own providers.  I'm glad the model is there, though, much better than the thousands of lines of VBScript and COBOL that was being used before.

# re: Membership, Profile & Role Management Frustration

Friday, February 15, 2008 12:34 AM by Parag kantharia

Hi Robert,

I had the same problem like you. Luckily i found a 3 part tutorial on User Admin Tool on www.asp.net

Here's the straight Link...

www.dotnetbips.com/.../30775db7-379a-4b37-beff-cb32d3734a04.aspx

Its in C#, and very good,. it solves most of the problems. I have installed it and it works like a charm.

You can download the code as well after the end of last part of tutorial.

It would be nice, if this code can get converted in to Vb.Net as soon as possible.

I hope i have helped you.

Parag Kantharia

# re: Membership, Profile & Role Management Frustration

Wednesday, February 20, 2008 11:06 AM by Joe

the one on dotnetbips is OK - I got a while ago - the code was a bit messy and I had to fix several bugs but was the only thing I could find at the time

# re: Membership, Profile & Role Management Frustration

Wednesday, March 25, 2009 5:11 PM by Lizet

It's been more than a year but did you ever try the credentials manager from Juval Lowy

www.code-magazine.com/article.aspx

Leave a Comment

(required) 
(required) 
(optional)
(required)