Wednesday, 15 April 2015

asp.net identity - I pulish my web project in vs 2013 ( web Forms with Individual User Accounts ) -



asp.net identity - I pulish my web project in vs 2013 ( web Forms with Individual User Accounts ) -

in vs 2013 create web forms individual user accounts , utilize asp.net identity , login works , alter as

<authentication mode="forms" > <forms loginurl="/account/login" defaulturl="default.aspx" protection="all"></forms> </authentication> <authorization> <deny users="?"/> </authorization>

(because if utilize

<loginurl="/account/login" >

my default page on first page , login page not first page in ie.)

when host project in iis ,the problem login first page , works @ first, after sign off , login works correctly , when close ie , open link 1 time again login page not direct default page . user name , password working because when come in wrong 1 "try again" message. when restart iis login page works , after come in username , password , press login default page appears closing page login page not direct default page .

your web.config file shows have revoke access pages anonymous users adding deny users="?" it. mean every users has not been authenticated yet, can not access pages in domain, , if request access page in domain, he/she must redirected login page. suggest set protected pages in different folder, , add together separate web.config file folder , config it's accessibility users. , set public pages in different section , allow anonymous access them

asp.net-identity

No comments:

Post a Comment