[Mono-aspnet-list] Profile_MigrateAnonymous() event in Global.asax

Robert Jordan robertj at gmx.net
Fri Aug 7 19:15:30 EDT 2009


Mark Walmsley wrote:
> I am trying to use the Profile_MigrateAnonymous() event in a Global.asax
> file, but it does not seem to fire.
> 
> The Global.asax file compiles okay but the Profile_MigrateAnonymous()
> function is apparently NOT called when I log in as an authenticated user.
> 
> Does anybody know if this is supported and, if so, how can I get it to work
> ???

I believe that Mono does not support the Profile_xyz events
when they are implemented in global.asax.

Try to add this to global.asax and please file a bug regardless
of whether the workaround works or not.

void Application_Start(object sender, EventArgs e)
{
	((System.Web.Profile.ProfileModule)Modules["Profile"]).MigrateAnonymous
		+= Profile_MigrateAnonymous;
}

Robert



More information about the Mono-aspnet-list mailing list