ASP.NET 2.0 Provider Toolkit now available for Download

Brian posted about this a little earlier today, but in case you missed it I'd recommend checking it out. 

The ASP.NET Provider Toolkit provides a full source code implementation for how you can build a set of ASP.NET 2.0 providers for the new Membership, Role Managmenet, Health Monitoring and Personalization features.

For those of you who haven't looked into the ASP.NET 2.0 provider model yet, it is definitely worth reviewing.  I think you'll find it provides a pretty nice extensibility model that lets developers pull out and replace the built-in implementations of our core building block services, and does a good job of letting you easily use the rich productivity features we've added in V2 (Membership, Role Manager, Profile, Site Navigation, Login Controls, WebParts, Menu/TreeView/Breadcrumb controls, etc, etc, etc) while at the same time preserving your options to extend and customize the built-in support in a really flexible way if needed.

Phase 1 of the Toolkit includes the source code for the Access providers we had in Beta1 but were cut in favor of SQL Express in Beta2.  Phase 2, which will happen later this year, will include the complete source code for the SQL Server, SQL Express, and AD/AZMan providers that we'll ship with the final release of the product.  We are also working on a detailed whitepaper (currently 75 pages and growing) that describes the provider pattern we implemented in ASP.NET 2.0 in detail, and talks about strategies for implementing new ones of your own.

 

Published Monday, August 01, 2005 11:40 PM by ScottGu
Filed under:

Comments

# re: ASP.NET 2.0 Provider Toolkit now available for Download

Tuesday, August 02, 2005 7:54 AM by saurabh nandu
Absolutely essential release!

# re: ASP.NET 2.0 Provider Toolkit now available for Download

Tuesday, August 02, 2005 9:02 AM by Dover
I don't know, but I was expecting a library with some helper classes for implementing a provider. But all that's there is a year-old article and an MS Access sample.

# re: ASP.NET 2.0 Provider Toolkit now available for Download

Tuesday, August 02, 2005 10:20 AM by Brennan Stehling
I cannot wait to look through this code. I could have really used it yesterday. I have a link to a custom site map I created last night at my blog.

http://brennan.offwhite.net/blog/archives/000222.html

# re: ASP.NET 2.0 Provider Toolkit now available for Download

Tuesday, August 02, 2005 12:18 PM by scottgu
Hi Dover,

The first release includes the full source code for the Access provider implementation. This uses the same helper utilities and base classes that we use for our SQL and other providers, and should be a good blue-print for how to build providers of your own.

The second release will include the full source code for our SQL and AD/AZMan providers, along with a more detailed whitepaper walking you though the implementation of the provider archiecture.

# re: ASP.NET 2.0 Provider Toolkit now available for Download

Tuesday, August 02, 2005 10:25 PM by vorachai@kku.ac.th
Good

# RossCode.com - RossCode Weekly #012

Monday, August 08, 2005 3:31 AM by TrackBack
RossCode.com - RossCode Weekly #012

# re: ASP.NET 2.0 Provider Toolkit now available for Download

Saturday, October 28, 2006 3:08 PM by Lucas
The link for download the tollkit points to a non existing location.

# re: ASP.NET 2.0 Provider Toolkit now available for Download

Sunday, October 29, 2006 10:51 AM by ScottGu

Hi Lucas,

Sorry about that -- the link changed.  I just updated it to point to the new location: http://msdn2.microsoft.com/en-us/asp.net/aa336558.aspx

Hope this helps,

Scott

# re: ASP.NET 2.0 Provider Toolkit now available for Download

Friday, November 03, 2006 7:15 PM by King Wilder
I downloaded the toolkit, but all it contains are the provider model classes. That's fine, but how do I implement them in a Windows app or an ASP.NET app? There's no example. Thanks.

# re: ASP.NET 2.0 Provider Toolkit now available for Download

Wednesday, March 07, 2007 12:54 AM by MartinFrom

Hello Scott,

I am trying to make my own custom providers based on the Microsoft Sql providers.

Key changes is that I will create my own database schema which will replace the GUID with an incremental Int (Id field) and i want the code to be based on the id values instead of the username.

The problem I have encountered is that the SetPropertyValues and GetPropertyValues methods in the Profile provider, gets a input parameter of type SettingsContext. This SettingsContext collection should according to the documentation contain Username OR UserId, and IsAnonymous. I am wondering how I can make it contain the UserId, as it seems the username is always used (maybe it is possible to choose which values are in the SettingsContext collection) ?

I need to find out of this because i dont want to use the Username when looking up profile data (as mentioned earlier).

If I could somehow control what is in the SettingsContext it would make it all a lot easier as I need to get the userId of which user to update or get data for. Also because I actually wanted to seperat the anonymous profile data from the Member profile data.

I dont know how it currently works when a user login or anonymous data is saved. But if the UserId is saved in the session (at login or save of anonymous data), it could be an easy work around (i guess) as i could then get the UserId from the session and check IsAnonymous if i need to create/update in one table or another.

I could probably be overlooking something.

It got a bit long, but I tried to write enough information for you to understand what i am trying to do and what my problem is.

Hope you understand me (and my english).

Thanks for a great blog.

Best regards

Martin

Denmark

ps. if adding an assembly to the web.config file will it then automaticly call the Initialize() method upon start of asp.net/iis just like the membership/profile providers? If not is there a way to do this ?