But, I want to use SimpleMembership. The problem is that SimpleMembership is getting the loginUrl from the wrong place. You can work around it by adding <add key="loginUrl" value="yourloginurl"/> in the <appsettings> configuration section, but you shouldn't
have to.
matthew29
Member
14 Points
4 Posts
SimpleMembership LoginUrl Web.config setting
Mar 30, 2012 01:56 AM|LINK
I would have expected that SimpleMembership would use the LoginUrl attribute of the
<system.web>
<authentication ...>
<forms loginUrl="..."
to set the login url. Unfortunately, looking at WebMatrix.WebData.ConfigUtil all setting are read from <appsettings>.
Either the documentation needs to be improved and/or the code should be changed to use the <forms loginurl-"..." setting.
Dino He - MS...
Star
8068 Points
1023 Posts
Microsoft
Re: SimpleMembership LoginUrl Web.config setting
Apr 02, 2012 03:07 AM|LINK
Hi
To solve the problem you need to disable something called “simple membership”.
Please refer to this link for details:
http://brockallen.wordpress.com/2011/06/01/beware-bin-deployment-of-mvc-and-razor-with-formsauthentication/
Hope it helpful.
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework
matthew29
Member
14 Points
4 Posts
Re: SimpleMembership LoginUrl Web.config setting
Apr 02, 2012 05:19 PM|LINK
But, I want to use SimpleMembership. The problem is that SimpleMembership is getting the loginUrl from the wrong place. You can work around it by adding <add key="loginUrl" value="yourloginurl"/> in the <appsettings> configuration section, but you shouldn't have to.
SonicMan
Participant
1472 Points
228 Posts
Re: SimpleMembership LoginUrl Web.config setting
Apr 06, 2012 02:07 AM|LINK
Hey
http://www.asp.net/web-pages/tutorials/security/16-adding-security-and-membership
http://mikepope.com/blog/AddComment.aspx?blogid=2240
I'm sure it's helpful.