SimpleMembership is the default membership provider in ASP.NET MVC4. It supports a customized User table and OAuth.
Questions tagged [simplemembership]
596 questions
3
votes
1 answer
WebSecurity.CreateUserAndAccount Sql Collation Issue
If Sql Server database collation is Turkish_CI_AS, I get that error at below cause UPPER function in SELECT Query in "GetUserId" method of SimpleMembershipProvider.cs class.
SQL UPPER('info') is not equal to "info".ToUpperInvariant() in…

Kaan
- 31
- 2
3
votes
2 answers
How to use SimpleMembership with WebForm 4.5 and EntityFramework?
Ive heard there new providers with ASP.NET 4.5 (such membership provider) but it seem i can't find anything decent about using the SimpleMembership with WebForm ASP.NET 4.5 and EntityFramework. Is there any good documentation or explanation about…

Rushino
- 9,415
- 16
- 53
- 93
2
votes
1 answer
IdentityServer4 replace Asp.net 4.5 MVC5 SimpleMembership for Authentication
I have an Asp.net 4.5 MVC5 app using SimpleMembership for Authentication and Authorization in App. Now I need to integrate to use external IdentityServer4 for Authentication. I tried to add OWIN Startup file into the project and turn off standard…

Tao
- 21
- 3
2
votes
2 answers
Unable to find .net data provider exception when implementing SimpleMembership
I am a newbie. I am using SimpleMembership to generate the Register and login tables. However, I am getting the following exception.
EXCEPTION
An exception of type 'System.ArgumentException' occurred in
System.Data.dll but was not handled in user…

Illep
- 16,375
- 46
- 171
- 302
2
votes
0 answers
Many-to-many relationship between own model and SimpleMembership user MVC 4
I am using the MVC4, as well as the EntityFramework and the SimpleMembershipProvider. I have two DBs, one created with the simplemembership and the other is MyProjectContext.
I have a model enrollment:
public class Enrollment
{
public…

dasdasd
- 97
- 1
- 14
2
votes
0 answers
Can't add user to role with SimpleMembership (MySQL)
I'm trying to use SimpleMembership with MySql in a Code First project. This is the initializer I made:
WebSecurity.InitializeDatabaseConnection("MyConnectionStringName", "UserProfile", "UserId", "UserName", false);
if…

Jens
- 129
- 1
- 7
2
votes
1 answer
Why MVC Simple Membership token returns null when i want to register second user?
I dont know what the wrong is but I cant take membership the token for the second user. I can easily register the first user but when i wanted to register second user, token comes null. I can get the user to the controller also…

livefreeor
- 109
- 12
2
votes
2 answers
Can I load SimpleMembership classes into EntityFramework?
I've been trying to load the standard ASP.NET SimpleMembership (SM) classes into my EntityFramework (EF) model, but keep running into a few brick walls. I want to use the UserProfile table as a class in my model to bind applications to certain…

shmow
- 622
- 1
- 8
- 19
2
votes
1 answer
Add Existing Membership/Role Provider to new WebAPI with Basic Authenication
Ok apparently there's nothing "Basic" about "Basic Authentication" when it comes to a WebAPI project and an existing database...but I digress.
Situation:
Existing asp.net Website App (WSP) with older .net membership providing user role and forms…

Indy-Jones
- 668
- 1
- 7
- 19
2
votes
1 answer
Log all other browsers out on login
I have a project running MVC4 and using Simple Membership for authentication. I only want to allow a user to login on one browser. To make this transparent to the user, I need a way to have any other authenticated browser log out whenever a user…

Todd Skelton
- 6,839
- 3
- 36
- 48
2
votes
2 answers
How to check user is in many roles in asp.net identity
Hi I need to check if a user is in one of the roles and i am confused with different versions of code that i found. Let me show you what i have at the moment first
_manager = new UserManager(new UserStore());
var…

Laurence
- 7,633
- 21
- 78
- 129
2
votes
3 answers
Detecting moment of user session timeout and executing a method
I have a need to make a change to a database value at the moment that a user logs out. I can make this happen when the user clicks 'logout', but I need this to happen when a user times out as well. Is there some sort of listener or other such method…

barnacle.m
- 2,070
- 3
- 38
- 82
2
votes
2 answers
Editing user profile details
How to create action and views for editing user custom informations?
Authorization is based on membership created by VS with MVC 4 project.
I've added additional columns, such as FirstName etc. I needed and registration works correctly, but I don't…

user1900685
- 193
- 1
- 4
- 16
2
votes
1 answer
Simple Membership gives me Unable to find the requested .Net Framework Data Provider
I am trying to add ASP.NET Simple Membership to my MVC 5 application. When the application start the initialization part in Global.asax.cs - Application_Start() gives me the following error:
Unable to find the requested .Net Framework Data…

Amr Ramadan
- 1,259
- 5
- 18
- 29
2
votes
1 answer
ASP.NET MVC 5 Simple Membership Initialization Error
I recently updated an MVC 4 site using simple membership to MVC 5.
I then have a line in a controller that uses the membership provider:
SimpleMembershipProvider provider = new SimpleMembershipProvider();
if (provider.GetUserId(User.Identity.Name)…

dalcam
- 1,027
- 11
- 28