SimpleMembership is the default membership provider in ASP.NET MVC4. It supports a customized User table and OAuth.
Questions tagged [simplemembership]
596 questions
4
votes
1 answer
Azure Web Sites - share login state across subdomains
I have two websites on Azure Web Sites, and I'm using a CNAME to use them with my own domain name.
Let's call the two sites site1.example.com and site2.example.com.
I'm using ASP.NET MVC 4 and SimpleMembership. I want the user to be able to log in…

Alex Warren
- 7,187
- 2
- 31
- 30
4
votes
1 answer
ASP.net MVC SimpleMembership
I'm using SimpleMembership, and I've connected it to my User table, and everything worked fine. But when I've tried to change UserId from int to guid, I've got error:
Cannot convert type 'System.Guid' to 'int'
For these lines of code:
…

hyperN
- 2,674
- 9
- 54
- 92
4
votes
2 answers
Customizing SimpleMembership
After reading this good BLOG about adding custom data to UserProfile table, I wanted to change it the way that UserProfile table should store default data + another class where all additional info is stored.
After creating new project using…

Banana
- 1,276
- 2
- 16
- 19
4
votes
2 answers
How do I delete a user with a role in ASP.NET MVC4 SimpleMembership?
Thanks for looking.
Background
On my current project, the client would like me to use ASP.NET MVC4's Simple membership. Normally I do not use the .NET membership classes so perhaps I am missing something simple, but I can't seem to delete a user…

Matt Cashatt
- 23,490
- 28
- 78
- 111
4
votes
1 answer
SimpleMembership Presents Login Form to Authenticated User
Developing an ASP.Net MVC 4 website with SimpleMembership, the Login GET controller is sometimes called even though the user is logged in. So far this has happened only during development (we're not in QA yet),
and only after modifying a .cshtml…

Eric J.
- 147,927
- 63
- 340
- 553
4
votes
1 answer
SimpleMembership taking away user authentication?
I'm making a new MVC 4 website and I have setup SimpleMembership. I have also created a CustomPrincipal which inherits from RolePrincipal and has one additional property named UserInfo which contains additional information about the user such as…

Marko
- 12,543
- 10
- 48
- 58
4
votes
1 answer
Simple Membership Provider - Entity Framework and Roles
I'm attempting to use the Simple Membership Provider with MVC 4 as "by the book" as possible. Here is the current scenario:
-- I've been using Jon Galloway's blog post on the topic here.
1) I'm aware this thing is wired via Entity Framework. I did…

Robert
- 1,745
- 5
- 34
- 61
4
votes
1 answer
Is it common to write your own membership handlers for MVC4 websites?
I've recently been getting back into ASP.NET, and I'm learning all about MVC4 and such. One thing which has been annoying me is the SimpleMembership stuff. It is supposedly there to save you time, a nice little membership system all made for you,…

Adam K Dean
- 7,387
- 10
- 47
- 68
4
votes
3 answers
ASP.NET simple membership provider?
I opened Asp.Net Mvc 4 Internet App. template. And I set connection string for my database like this:

AliRıza Adıyahşi
- 15,658
- 24
- 115
- 197
4
votes
2 answers
SimpleMembership MVC3 Could not load file or assembly WebMatrix.Data
I'm using the SimpleMembership.MVC3 package to manage membership. Everything works fine at development but when I deploy to my Azure web role, It throws the following exception:
Could not load file or assembly 'WebMatrix.Data, Version=1.0.0.0,
…

Sebastián Odena
- 195
- 1
- 4
- 13
4
votes
1 answer
Getting User Information using SimpleMembership
Still trying to get to grips to the new SimpleMembership with MVC4. I changed the model to include Forename and Surname which works fine.
I want to change the information displayed when logged in so instead of using User.Identity.Name in the View I…

user1166905
- 2,612
- 7
- 43
- 75
3
votes
1 answer
ASP.NET login does not redirect just logged user properly in Firefox and IE, but works with Chrome
I have ASP.NET application, which is perfectly works on development environment. Login works on Firefox, IE and Chrome.
Requests in Firefox in development env looks like:
POST Request:
POST /MyServiceName/Account/Login?ReturnUrl=%2FMyServiceName%2F…

Ksice
- 3,277
- 9
- 43
- 67
3
votes
1 answer
Create two joined tables with ASPNetUsers table or to extend the ASPNETUsers table?
The application should have customers and sellers and another table for goods/items,
First scenario is to extend the AspNetUsers and make it usable for both customers and sellers and differentiate between them by one field added to AspNetUsers…

Bashar Abu Shamaa
- 1,998
- 2
- 21
- 36
3
votes
4 answers
Could not load file or assembly 'System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies
My project is working on my local pc. But when i put it on the server i got that exception. I tried to check assemblies add/ remove or re install but it didn't work anyway. I found some posts about that subject but they didnt help me or i couldn't…

Abdullah Semih AYYILDIZ
- 53
- 1
- 1
- 5
3
votes
1 answer
WebAPI + SimpleMembership + WebSecurity - can never authenticate?
I'm trying to implement a single-page app. I carried over some of my working code from another project (MVC4) to implement authentication. Right now I see cookies being set, but WebSecurity / User.Identity do not seem to be working for some…

RobVious
- 12,685
- 25
- 99
- 181