Questions tagged [asp.net-membership]

ASP.NET membership gives you a built-in way to validate and store user credentials.

ASP.NET Membership works on top of forms-authentication and gives you:

  • Ability to create and store users and their passwords with little or no code.
  • Out-of-the-box support for changing, resetting, retrieving and encrypting passwords.
  • Choice of two storage locations - SQL Server and Active Directory.
  • Custom providers can be created to store users in custom stores

Resources

MSDN - Introduction to Membership
4guysfromrolla - Examining ASP.NET's Membership, Roles, and Profile

3256 questions
1
vote
2 answers

How to set WCF security when Calling WCF from a web applicaion that shares same ASPNET membership with WCF service?

NET web application and a WCF Application that share the same ASP.NET membership database. They are both sharing the same ASP.NET membership database. It is basically like: WCF: is https://ServerName/Services.svc ASP.NET: is…
Emad Gabriel
  • 3,677
  • 7
  • 37
  • 49
1
vote
0 answers

Issues connecting ASP.net membership to external MySQL database

I'm working on a school project and I'm almost done. I created a C# website with different functions for different users. I tested my website several times on my local machine and it works fine, even logging in with Google+ api etc works as it…
ielaajez
  • 91
  • 1
  • 13
1
vote
1 answer

After deployment, login control stops working

In my development environment I can register and login just fine. After loging in or registering I do a redirect. Once deployed I noticed that the registering still works, but the page refreshes. Stranger still is the fact that when I try to log in,…
1
vote
2 answers

Create user in another Membership.ApplicationName

I have an administration website - the users of which should be able to modify users for a public site. This means the administration site has a valid membership provider, but I want to be able to access/change members in another site (and therefore…
Ian Grainger
  • 5,148
  • 3
  • 46
  • 72
1
vote
3 answers

How do I add first user (root) in ASP.NET MVC app?

I'm using ASP.NET MVC Framwork and trying to grok the ASP Membership 3.5 stuff. What is the best way to add the first administrator user without having to log in? I've been staring at the membership starter kit's source without finding it.
Spoike
  • 119,724
  • 44
  • 140
  • 158
1
vote
0 answers

ASP.NET Logged In Template isn't working

I'm using ASP.NET Membership for a web-application and currently cannot get the LoggedIn Template to display the email address of the user once they are logged in. This is very frustrating as the login is working but the LoggedIn template just…
1
vote
2 answers

Should I use the membership provider when using MVC and a forum database?

I want to use an existing user and user group table that the forums use. I would prefer not to have to add any additional tables (other than what the forum already has). I will be using MS SQL. The forums are PHP which is why I want the .net site to…
KevinUK
  • 5,053
  • 5
  • 33
  • 49
1
vote
1 answer

How do I display a different view based on membership role?

I am brand new to MVC, and i'm jumping in head first. I am creating a time and attendance application. I want the user to simply log in and see the user interface for clocking in. However, for salaried employees I want to provide a different…
Erik Funkenbusch
  • 92,674
  • 28
  • 195
  • 291
1
vote
2 answers

MembershipProvider.GetPassword algorithm

We are converting an ASP site (using DotNetNuke) to a new PHP site. The only thing we have right now is a full export of the existing database. One of the tables is called "aspnet_Membership" and contains the following fields: Password (looks like…
dirkbonhomme
  • 201
  • 2
  • 10
1
vote
1 answer

ASP.NET Custom membership issue with get custom membership user -No parameterless constructor defined for this object

Error throws when custom membership user object create. Details error message is as below. Error: System.Configuration.ConfigurationErrorsException was caught Message=No parameterless constructor defined for this object.…
Ajith
  • 11
  • 4
1
vote
0 answers

membership defaultProvider Active Directory

I am trying to set up an ASP.NET MVC site to use LDAP. I feel like I have everything set up right, but Membership.ValidateUser keeps returning false when I am expecting it to return true. I've read some documentation, like for example this one on…
1
vote
2 answers

IsInRole returns False at LogOn but True later in MVC2

In MVC2, I am running into a situation where my HttpContext.User.IsInRole(xxx) check immediately after calling FormsService.SignIn returns false, but in a subsequent call to Page.User.IsInRole(xxx) returns true, which is correct. Can't figure out…
sydneyos
  • 4,527
  • 6
  • 36
  • 53
1
vote
1 answer

system.web.security.membership Issue after rename data

I have a issue. I renamed Database_A to Database_B. After that I can't use this user = Membership.GetUser(strUserName) to get user information because this refer to old database. I see triggers also refer to old DB. How can I correct this? Thanks!
DC8 United
  • 29
  • 1
1
vote
1 answer

Integrate multiple ASP.Net websites

I want to create a new website. The website has 3 applications, each one has its own membership/profile provider. I want the user to be able to log in to the site with one single sign on. Possible option AFAIK: Define the same…
Kamyar
  • 18,639
  • 9
  • 97
  • 171
1
vote
1 answer

How do you create a new user with Membership in MVC 5

I have created a small demo in angularjs with mvc c# and I want to have a login facility using membership provider. I have tried this simple code for the getting records from the database but it doesn't return any users from the database. There are…
coderwill
  • 804
  • 3
  • 16
  • 38