Extra Method

Jan 11, 2008 at 3:22 PM
Could you modify WebProfile Generator to create the following method

public virtual WebProfile GetProfile(string username, bool authenticated)
return new WebProfile(System.Web.Profile.ProfileBase.Create(username, authenticated));

I am doing

public void Profile_OnMigrateAnonymous(Object sender,
ProfileMigrateEventArgs args)
WebProfile Profile = new WebProfile(Context.Profile);
// get the anonymous user's profile
WebProfile anonymousProfile = Profile.GetProfile(args.AnonymousID);

which always returns an uninitialised anonymousProfile.
I tried doing anonymousProfile.Initialize(args.AnonymousID, false);
but this doesn't work.
The only thing that does work is
WebProfile anonymousProfile = Profile.GetProfile(args.AnonymousID, false);
but this means manualy editing the WebProfile.cs file :-(

I am using the XmlProvider Library

TIA Chris
Feb 3, 2008 at 9:40 PM
This method has been added in an upgraded solution called Web Profile Builder.
Aug 29, 2010 at 2:30 PM

I tried using it with Visual Studio 2010. But it failed. Could you fix it for VS 2010 ?


Kunal Jain