Questions tagged [sqlmembershipprovider]

The `SqlMembershipProvider` class is used by the `Membership` and `MembershipUser` classes to provide membership services for an ASP.NET application using a SQL Server database.

The SqlMembershipProvider class is used by the Membership and MembershipUser classes to provide membership services for an ASP.NET application using a SQL Server database.

System.Object
. System.Configuration.Provider.ProviderBase
. . System.Web.Security.MembershipProvider
. . . System.Web.Security.SqlMembershipProvider

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)

To manually create the database, run the Aspnet_regsql.exe executable found in the %systemroot%\Microsoft.NET\Framework\ versionNumber folder and specify the -A m option (for example aspnet_regsql.exe -A m). The database created is called Aspnetdb. Alternatively, run Aspnet_regsql.exe to pull up the GUI configuration mode and choose to configure all ASP.NET Features.

http://msdn.microsoft.com/en-us/library/system.web.security.sqlmembershipprovider(v=vs.110).aspx

201 questions
4
votes
3 answers

SQLMembershipProvider - source code

Where can I find the source code for SQLMembershipProvider (.NET2.0)? Is it available?
kristof
  • 52,923
  • 24
  • 87
  • 110
4
votes
2 answers

Bad crypto error in .NET 4.0

Today I moved my web application to .net 4.0 and Forms Auth just stopped working. After several hours of digging into my SqlMembershipProvider (simplified version of built-in SqlMembershipProvider), I found that HMACSHA256 hash is not consistent.…
Andrey
  • 20,487
  • 26
  • 108
  • 176
4
votes
3 answers

Can I configure the ResetPassword in Asp.Net's MembershipProvider?

I have an C# asp.net app using the default Sql MembershipProvider. My web.config has a few settings that control how I'm using this Provider: enablePasswordRetrieval="false"…
Colorado Techie
  • 1,302
  • 1
  • 13
  • 21
4
votes
2 answers

Reproduce SqlMembershipProvider Password Hashes

We are migrating our user authentication from the provided .NET implementation to our own system. We'd like to be able to support old passwords that exists in the aspNet_Membership table. The Password and Salt reside in that table, so theoretically…
3
votes
2 answers

Windows authentication & SQL Membership services

I have an ASP.Net MVC intranet site which uses Windows Authentication to know who is logged in (no anon browsing allowed). The first time the users visit, I collect some very basic information from them for their Contact object (such as name, email,…
3
votes
2 answers

Using ActiveDirectoryMembershipProvider with SqlMembershipProvider

I want to create a web-app (a website) used in house by staff only. I want to use active directory membersip provider to authenticate users. The thing that is confusing me is how do I manage profiles and roles, and also link users with a FK to other…
raklos
  • 28,027
  • 60
  • 183
  • 301
3
votes
1 answer

How can I create a user for ASP.Net/Umbraco SQL Membership from iPhone and WCF?

So I have been struggling for days now, trying to simply create a new user with a WCF Service using Umbraco's Membership Provider. Can someone tell me if I'm out of my mind, if this is impossible to do, or if I'm overlooking something I need to add…
3
votes
1 answer

ASP .Net: AspNetSqlMembershipProvider "unique email" problem

I am using AspNetSqlMembershipProvider in my ASP .Net 4 web application project. I have configured user address to be unique (requiresUniqueEmail="true") in my web.config file as below:
Moon
  • 33,439
  • 20
  • 81
  • 132
3
votes
2 answers

WCF Authentication using SQL Membership Provider

Hopefully you folks can clarify some of this for me. I have a web-application using the Sql Membership Provider and it talks to a second web-application through a WCF Service. Both applications share the same Sql Membership Provider…
Prisoner ZERO
  • 13,848
  • 21
  • 92
  • 137
3
votes
2 answers

Hashing no longer works in .Net 4.0 despite MSDN workarounds

I have an existing app in production that uses SqlMembershipProvider and has a specified machine key: It runs under .Net 2.0 AppPool…
DarkwingDuck
  • 2,686
  • 24
  • 29
3
votes
2 answers

ASP.NET membership/SQLMembershipProvider Source Code

In the SQLMembershipProvider source for ASP.NET membership, there is a custom exception, MembershipPasswordException. The definition of it is not part of the source, but when I do a goto definition on it, it opens the definition, which indicates:…
Steve
  • 5,802
  • 12
  • 54
  • 76
3
votes
1 answer

I have added a user and assigned him to a role, when i use Membership.GetAllUsers() it returns none

Side note: I am using vs2013 express and have installed nothing else. I am building an intranet site with the following authentication/authorisation goals: Custom roles using the Roles class No need for logging in, if you are signed into windows,…
Jimmyt1988
  • 20,466
  • 41
  • 133
  • 233
3
votes
1 answer

Can't get a custom Membership Provider to work with Sitecore 6

I followed the directions in the Membership Providers document provided by Sitecore, but I was unable to get my membership provider to work correctly. Specifically, in the web.config, I changed the "realProviderName" attribute on the sitecore…
John B
  • 20,062
  • 35
  • 120
  • 170
3
votes
1 answer

Asp.Net Membership Password Resets without symbols

I'm using the asp.net Membership Provider in an application. I'm also using the "out of the box" asp:PasswordRecovery control. My client is complaining that the new passwords being issued are too complicated. e.g. }>;-(hYrS^OTfY Are there any small…
aron
  • 2,856
  • 11
  • 49
  • 79
2
votes
4 answers

Membership CreateUser and related tables

I have just switch to .Net membership provider to manage my users. I have a table relating to the Users table called UserGroupDetails. I would like to add a row to this table when Membership.CreateUser is called. If adding the user fails i would…
1 2
3
13 14