asp.net - ChangePasswordQuestionAndAnswer Specified method is not supported -
i'm trying make website membership. works find execpt when member tries change password question , answer. found out problem on line :
bool changesucceeded = currentuser.changepasswordquestionandanswer(model.password, model.question, model.answer);
in call of changepasswordquestionandanswer
. exception : specified method not supported.
everytime try change question , answer. saw lot of things on web nothing have solved problem. here important parts in web.config
<add name="applicationservices" connectionstring="data source=localhost;initial catalog=isaacwebdb;integrated security=true" providername="system.data.sqlclient"/> <membership defaultprovider="aspnetsqlmembershipprovider"> <providers> <clear/> <add name="aspnetsqlmembershipprovider" type="system.web.security.sqlmembershipprovider" connectionstringname="applicationservices" enablepasswordretrieval="false" enablepasswordreset="true" requiresquestionandanswer="true" requiresuniqueemail="true" maxinvalidpasswordattempts="5" minrequiredpasswordlength="6" minrequirednonalphanumericcharacters="0" passwordattemptwindow="10" applicationname="/"/> </providers> </membership>
does has idea wrong or missing thing need able this?
* edit : saw same thing happens membership.getallusers()
the documentation membershipuser.changepasswordquestionandanswer gives explanation why failing:
platformnotsupportedexception
- method not available. can occur if application targets .net framework 4 client profile. prevent exception, override method, or change application target full version of .net framework.
it sounds targeting client profile .net framework 4 in project / solution.
Comments
Post a Comment