Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
579 Points
465 Posts
May 14, 2012 08:07 PM|LINK
if I changed this function in ProfileCommon to this.
public static ProfileCommon GetUserProfile(string username) { return Create(username) as ProfileCommon; //return ((ProfileCommon)(Create(username))); //return (ProfileCommon)Create(username); }
Profile always null. and doesnt give error. ProfileCommon Profile = ProfileCommon.GetUserProfile("User1");
simply can we say MySqlProfileProvider is not much usefull ?
hcetiner
Member
579 Points
465 Posts
Re: Unable to cast object of type 'System.Web.Profile.DefaultProfile' to type 'WebApplication1.Pr...
May 14, 2012 08:07 PM|LINK
if I changed this function in ProfileCommon to this.
public static ProfileCommon GetUserProfile(string username) { return Create(username) as ProfileCommon; //return ((ProfileCommon)(Create(username))); //return (ProfileCommon)Create(username); }Profile always null. and doesnt give error.
ProfileCommon Profile = ProfileCommon.GetUserProfile("User1");
simply can we say MySqlProfileProvider is not much usefull ?