Questions tagged [membership-provider]

Membership providers provide the interface between Microsoft ASP.NET's membership service and membership data sources. ASP.NET 2.0 ships with two membership providers: SqlMembershipProvider, which stores membership data in Microsoft SQL Server and SQL Server Express databases ActiveDirectoryMembershipProvider, which retrieves membership data from Microsoft Active Directory

986 questions
17
votes
6 answers

Admin pages to manage asp.net membership provider & Role management

Are there any open source projects that provide a front end to asp.net membership provider? Something like the one visual studio exposes through it configuration, but one that can be deployed on production. Examples of some of the functionality I…
Quintin Par
  • 15,862
  • 27
  • 93
  • 146
16
votes
4 answers

Using Linq on MembershipUserCollection

I have this code which gives me a list of all the users by using my membership provider. var users = Membership.GetAllUsers(); var usernames = new List(); foreach(MembershipUser m in users) …
ek_ny
  • 10,153
  • 6
  • 47
  • 60
14
votes
1 answer

what is the differences between Membership, SimpleMembership, ASP.NET Identity?

what is the differences between Membership, SimpleMembership, ASP.NET Identity? Which one is best in web forms? How to use SimpleMembership in web forms. Limitation with SimpleMembership in web forms.
Pramod Gahtori
  • 201
  • 2
  • 8
14
votes
6 answers

Get the ID of the current user ASP.NET Membership

How do you guys manage to get the ID of the current user using the ASP.NET Membership Provider? My application is an MVC 3 using Database First approach, so I created my own database and the Membership Provider and Role Provider are using my tables…
Jean-François Côté
  • 4,200
  • 11
  • 52
  • 88
14
votes
2 answers

ActiveDirectoryMembershipProvider - "Unable to establish secure connection"

I am trying to configure an ActiveDirectoryMembershipProvider but I keep getting the message "Unable to establish secure connection with the server". I have seen online at the MSDN website that I should configure the trust level to unrestricted on…
Pablo
  • 2,054
  • 8
  • 30
  • 56
14
votes
2 answers

NonComVisibleBaseClass was detected; How do I fix this?

My class derives from System.Web.Security.MembershipUser I am getting this error when submitting the form. The popup form uses ASPPDFand the application did not have this problem before implementing the custom MembershipProvider goodies. Note this…
13
votes
1 answer

ASP.NET Membership Password Reset

This is crazy, I have been trying for hours to get this to work. My client wants to be able to reset password for users who have forgotten them The only parameter he has is the UserName. He does NOT want the user to be able to reset the password…
13
votes
1 answer

What is Membership Provider on MVC 5?

Asp.Net MVC 4 Internet Application uses SimpleMembership. When you create a new MVC project on Visual Studio 2013 Preview, I think MVC 5 uses the new one. Do you know anything about it?? SimpleMembership; A membership which I don't know the name…
13
votes
1 answer

.net MVC Simple Membership Authentication with Database

Using Code First Entity Framework with .NET MVC 4 I have created a new Web Application and populated the database with object as shown below. public class GratifyGamingContext : DbContext { public DbSet Games { get; set; } public…
12
votes
1 answer

How do you handle Membership/Roles when using NHibernate?

I'm about to kick off a new project using NHibernate and ASP.Net MVC and have come upon the question of membership. I'm wondering if I should use a 3rd party NHibernate Membership/Role provider, create my own, or just skip the providers all…
RKitson
  • 2,003
  • 1
  • 18
  • 21
12
votes
1 answer

Error: Only LDAP Connection Strings are Supported against Active Directory

I have the following ASP.NET Membership section defined in the Web.config file:
12
votes
2 answers

How can I customize simple membership provider to work with my own database ASP.NET mvc 4

I’m exploring ASP.NET MVC 4 these days. I will be pleased if someone can help by answering my question . I am building an academic project "Project management and support system" . I have designed my own database , I have my own tables for the users…
12
votes
2 answers

Membership systems for MVC4 that support RavenDB

I create a lot of quick "proof of concept" MVC apps and I actually found the SimpleMembership provider that shipped with the MVC4 templates to be very handy since it gets me up and running with user registration & OAuth in a matter of…
brad oyler
  • 3,669
  • 1
  • 20
  • 22
12
votes
2 answers

Assigning Roles with MVC SimpleMembership

I am trying out "SimpleMembership" in MVC3 via Nuget and have downloaded the sample to play with. The issue is that I cannot figure out how I would assign a role to a particular user. In the standard MVC membership you can just use something…
12
votes
1 answer

Compare string to null - Why does Resharper think this is always false?

I have this code in my custom MembershipProvider: public override void Initialize(string name, System.Collections.Specialized.NameValueCollection config) { if (config == null) throw new ArgumentNullException("config"); if (name ==…
magnattic
  • 12,638
  • 13
  • 62
  • 115
1
2
3
65 66