Posted on: 11/18/2013 10:02:57 AM | Views : 1050

Hello.
Just enabled in my webconfig file
maxInvalidPasswordAttempts="3" passwordAttemptWindow="30" requiresQuestionAndAnswer="true"
And getting error on my custom UserProfile class.
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Profile; using System.Web.Security; namespace Site { public class AccountProfile : ProfileBase { static public AccountProfile CurrentUser { get { return (AccountProfile) (ProfileBase.Create(System.Web.HttpContext.Current.Session["UserName"] as string)); //gettin Error in here } } public string FirstName { get { return ((string)(base["FirstName"])); } set { base["FirstName"] = value; Save( ...

Go to the complete details ...