SimpleMembership is the default membership provider in ASP.NET MVC4. It supports a customized User table and OAuth.
Questions tagged [simplemembership]
596 questions
0
votes
1 answer
How to change username using mvc4 and simplemembership
Why is it that you can't change a simplemembership username. I've tried
MembershipUser memUser = Membership.GetUser(existingUser);
memUser.UserName = model.UserName;
Membership.UpdateUser(memUser);
I get that MembershipUser.UserName is read only.…

zms6445
- 317
- 6
- 22
0
votes
1 answer
MVC Code First: Why does no relationship exists between webpages_Membership and UserProfile tables?
I am using the SimpleMembership providers in MVC with a code first design.
I see that EF created 5 tables: UserProfile, webpages_Membership, webpages_OAuthMembership, webpages_UsersinRoles and webpages_Roles.
UserProfile has a PK of UserID and so…

Julian Dormon
- 1,767
- 4
- 32
- 58
0
votes
1 answer
Store ConnectionString on Azure using SimpleMembership
I'm using TFS Service for automatic deployment to Windows azure. The project is a Web Role and some class libraries. The deployment tasks works great - the only question is where to store the connectionstring? Normally I would store it in csdef /…

Doppelmoep
- 436
- 5
- 19
0
votes
1 answer
Confusion Over SimpleMembership
I have a little confusion regarding the SimpleMembership and its use in a ASP.NET MVC Web site.
My project currently uses a code first dbcontext, which sits in a Class Library called "Data Access".
I have another class library called "DomainObjects"…

Mick Walker
- 3,862
- 6
- 47
- 72
0
votes
1 answer
SimpleMembership Could not drop constraint
When executing:
ALTER TABLE [dbo].[webpages_UsersInRoles] DROP CONSTRAINT [FK_dbo.webpages_UsersInRoles_dbo.webpages_Membership_UserId]
I receive an error:
'FK_dbo.webpages_UsersInRoles_dbo.webpages_Membership_UserId' is not a constraint.
Could not…

Broken
- 109
- 2
- 10
0
votes
1 answer
Websecurity not using correct database
Im building a simple webb app using VS2012, SQLExplress, latest .net version, Code first entity framework and migrations. Im building from the standard MVC4 template in VS2012 which is using the new simple membership as default.
My problem is that…

shcizo
- 1
- 2
0
votes
1 answer
ASP.NET MVC 4 + SimpleMembershipProvider
My MVC application works perfectly in the development machine but when I deploy into the production server it always gives various error messages, for example:
You must call the "WebSecurity.InitializeDatabaseConnection" method before you call any…

sada
- 584
- 2
- 8
- 25
0
votes
1 answer
ASP.NET MVC 4 C# - Internet Application Template using default SimpleMembership, Error: System.Data.SqlClient.SqlException: Login failed for user xxx
I am running the application locally (localhost), and since I have already registered, I log in properly and then can navigate regularly through all the pages of my application. Then without logging out, I close the IIS express. But when I start…

Chris84
- 101
- 8
0
votes
1 answer
Entity Framework: Why SimpleMembership looking for Default Connection
I have explicitly set AccountsContext to use mytestdb as the connection string for SimpleMembership, as below -
public class AccountsContext : DbContext
{
public AccountsContext()
: base("mytestdb")
{
}
}
But Database…

Abhijeet
- 13,562
- 26
- 94
- 175
0
votes
1 answer
Schema first and simple membership?
I’m trying to build database using schema first (EF5) and add it simple membership as well.
After ”drawing” my schema I have add user profile table (UserId&UserName) remove the
Filter: InitializeSimpleMembershipAttribute, remove all of this…

Danny
- 301
- 1
- 4
- 21
0
votes
1 answer
Using SimpleMemberShipProvider in Visual Studio 2010 MVC 4 Basic Template
For quite a long time I've been searching a good guide to develop a MVC 4 application, which would use SimpleMemberShipProvider.
I've created a project with MVC4 Basic template in Visual Studio 2010. So, it gives no Views, Models or controllers. Can…

Arnab Das
- 3,548
- 8
- 31
- 43
0
votes
1 answer
Customizing Simple Membership/WebMatrix Websecurity? Ability to suppress OAuth Tables? Delete password field?
I am working on a MVC4 website and have been working to customize the out-of-the-box SimpleMembershipProvider and have a few questions that I wasn't able to track down in the documentation.
1) What kind of control can I have over the tables…

user823216
- 23
- 1
- 5
0
votes
2 answers
MVC4 SimpleMemberhip Intranet webapp with Custom Roles
I am using SimpleMembership with WebMatrix. Since its an Intranet webapp, I am using the exisitng domain users in combination with custom roles and storing them in local webpages_ tables. I am trying to develop classes to manage the users & roles.…

SQLGrinder
- 373
- 4
- 6
- 20
0
votes
2 answers
Is there any out of the box admin page for SimpleMembershipProvider or OAuth in ASPNET MVC 4?
I'm using SimpleMembershipProvider in and ASPNET MVC 4 applcation which uses WebApi, Entity Framework 5 and Code First.
I did it following this post, which seeds the database and seems to work.
My question is:
Is there any out of the…

polonskyg
- 4,269
- 9
- 41
- 93
0
votes
1 answer
Adding forms authentication (SimpleMembership) to webapi app
I'm trying to add to a MVC4 webapi project the simple membership provider authentication mechanism found in a MVC 4 web application project, for a hybrid application serving its pages with a rich JS content, which uses AJAX calls to webapi actions…

Naftis
- 4,393
- 7
- 63
- 91