Questions tagged [simplemembership]

SimpleMembership is the default membership provider in ASP.NET MVC4. It supports a customized User table and OAuth.

596 questions
0
votes
1 answer

GetAllUsers infos (from UserProfile and Membership Tables given by SimpleMembership) with Entity Framework?

First I am really new to .NET framework and all stuff around. What I want to do is to build my admin part for my n-tiers MVC4 App where security is dealt with SimpleMembership. (the default) Regarding the standard MVC4 template and in order to…
benoitr
  • 6,025
  • 7
  • 42
  • 67
0
votes
4 answers

SimpleMembership updating the "isconfirmed" flag

My Users table (the one that I created) has the following columns: UserId,UserName,FirstName,LastName,DOB After I ran this command WebSecurity.InitializeDatabaseConnection("DefaultConnection", "Users", "UserId", "UserName", autoCreateTables:…
Vijay V
  • 389
  • 5
  • 11
  • 23
0
votes
1 answer

Simple Membership Sub-Domain Authentication

I am looking to implement Simple Membership authentication for a wildcarded sub-domain application. Users will login to a root site (i.e. www.localhost.com) and be redirected to a psuedo sub-domain site (www.user1.localhost.com). There is only one…
-1
votes
1 answer

How to make changes in Database First code to make it working with Code First

i am having trouble in changing code from database first to code first.I was implementing this blog post http://techbrij.com/facebook-wall-posts-comments-knockout-aspnet-webapi. First trouble is with database generated from code first.It is creating…
-1
votes
1 answer

two user profile table created in sql server

I have my Accountmodels.cs class like this--- public class UsersContext : DbContext { public UsersContext() : base("DefaultConnection") { } public DbSet UserProfiles { get; set; } } public class…
neo
  • 164
  • 1
  • 17
-1
votes
1 answer

Simple Membership needs System.Web.WebPages.Razor ( asp Web Forms)

I've added Simple Membership to my Asp WebForms application and when i run the application it tells me that Could not load file or assembly 'System.Web.WebPages.Razor, Version=3.0.0.0 why is that?? can i use Simple Membership with Asp WebForms?
Pouya Samie
  • 3,718
  • 1
  • 21
  • 34
-1
votes
2 answers

SimpleMembership - UserManager.FindAsync does not work in MVC5

The following code does not work: if (ModelState.IsValid) { var user = await UserManager.FindAsync(model.UserName, model.Password); if (user != null) { await SignInAsync(user,…
Oleg Sh
  • 8,496
  • 17
  • 89
  • 159
-1
votes
1 answer

Strange MVC/ Simple Membership logging in Case Insensitive UserName

I was testing a MVC SimpleMembership userprofiles when I noticed this behavior. I created a new MVC project with internet settings in VS2012. Ran the project. Created a new user by registering under the user name "User Name" and password…
Flood Gravemind
  • 3,773
  • 12
  • 47
  • 79
-1
votes
1 answer

Entity Framework, EntityCommandExecutionExeption

Using Simple Membership provider.... and a User view ( that passes UserID into ) Userroles Controller My Index ( of UserRoles ) ( the ID is UserID from ActionLink in the View from User Controller) public ActionResult Index([Bind(Prefix = "id")]…
Pakk
  • 1,299
  • 2
  • 18
  • 36
-1
votes
2 answers

SQL Server light-weight editions

I’m developing an ASP.NET MVC application that is using a LocalDb database. This app also needs to have a corresponding Windows service that runs all the time. After much research, it looks like LocalDb is not a wise choice for deployment because…
-3
votes
1 answer

ASP.Net MVC WebSecurity.InitializeDatabaseConnection return error

whenever this line execute WebSecurity.InitializeDatabaseConnection then it is giving error "Connection string "Data Source=BBATRIDIP\SQLSERVER2008R2;Initial Catalog=test;User ID=sa,password=test#" was not found." again…
Thomas
  • 33,544
  • 126
  • 357
  • 626
1 2 3
39
40