Problem with Login control of ASP.NET -
i set website use sqlmembershipprovider written on this page.
i followed every step. have database, modified web.config use provider, correct connection string, , authentication mode set forms. created users test with.
i created login.aspx , put login control on it. works fine until point user can log in.
i call default.aspx, gets redirected login.aspx, enter user , correct password. no error message, nothing seems wrong, see again login form, enter user's login information. if check cookies in browser, can see cookie specified name exists.
i tried handle events myself , check, happening in them, no success.
i'm using vs2008, website in filesystem, sql express 2005 store aspnetdb, no role management, tested k-meleon, ie7.0 , chrome.
any ideas?
resolution: after mailing rob have ideal solution, accepted answer.
i have checked code on in files have sent me (thanks again sending them through).
note: have not tested since have not installed database etc..
however, pretty sure issue.
you need set membershipprovider property asp.net controls. making definitions them:
<asp:login id="login1" runat="server" membershipprovider="mysqlmembershipprovider"> <layouttemplate> <!-- template code snipped brevity --> </layouttemplate> </asp:login>
and..
<asp:createuserwizard id="createuserwizard1" runat="server" membershipprovider="mysqlmembershipprovider"> <wizardsteps> <asp:createuserwizardstep runat="server" /> <asp:completewizardstep runat="server" /> </wizardsteps> </asp:createuserwizard>
this binds controls membership provider given name (which have specified in web.config.
give whirl in solution , let me know how on. hope works :)
edit
i should add, know shouldn't need default provider set, have had problems in past this.. ended setting them manual , worked fine.
Comments
Post a Comment