asp.net mvc - Asp/Razor CreateUser method -


okay, here's issue in general. using system.web.security.sqlmembershipprovider log in , registration website. , using razor syntax (.cshtml files) view pages. 1 of these pages "forgot password" page. in page, want use code supported bywebmatrix.webdata.websecurity. i've added necessary code web.config , that, that's not problem.

my problem register code doesn't work. specifically, createuser method. happening that, though visualstudio shows createuser method membershipprovider.createuser, when function called (i've looked @ stack call, i'm sure of this) webmatrix.webdata.simplemembershipprovider.createuser. function not supported system (according exception statement). apparently, createuser methods both membershipprovider , webmatrix have exact same signatures, appears problem.

here's method code, worth, but, code created automatically, when create website in visualstudio. and, way, cannot change parameters: _provider.createuser(username, password, email, null, null, true, null, out status);

so, solution? able explicitly specify method in code. like: _provider.membershipprovider.createuser(username, password, email, null, null, true, null, out status); alas, not allowed this. so, there way specify function call? or maybe other solution?

what happens when use

membership.createuser() 

or

membership.provider.createuser() 

without seeing more of code, difficult help.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -