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
2
votes
1 answer

AspNetSqlMembershipProvider asp:PasswordRecovery: How to set the password complexity?

We are using the AspNetSqlMembershipProvider control to generate new passwords. Is there anyway to turn down the complexity of the generated passwords? By default it is outputting things like this: *f.;tp{h|[hPCF I realize I could roll my own…
Dave K
  • 1,674
  • 4
  • 16
  • 22
2
votes
2 answers

What do the ASP.NET Universal Providers enable that the default sql providers don't?

Inside the readme file of the ASP.NET Universal providers NuGet package is this quote The SqlMembershipProvider, SqlRoleProvider, SqlProfileProvider classes that shipped in ASP.NET through version 4 support only Microsoft SQL Server and Microsoft…
2
votes
1 answer

How can I block the same user from logging in on another machine?

I basically want to setup in my LogOn Action a conditional statement that looks at the username, and determines that username is already logged in. At which point the user should be informed. That account is logged in, if you think you've been…
Doug Chamberlain
  • 11,192
  • 9
  • 51
  • 91
2
votes
1 answer

Approve multiple applications with single sql membership provider

I have an asp.net application that uses the SQL membership provider. I know how to get multiple applications using the same membership provider so a user can go to multiple sites and login using the same credentials. However the requirement on my…
user714241
  • 380
  • 1
  • 7
2
votes
2 answers

ASP.NET SqlMembership Provider allow multiple users with same name

I have a web application that is kind of a hub for different companies. Each one of these companies will be allowed to manage (create/delete) its own user. If there are thousands of companies using the application, they're bound to create users…
2
votes
1 answer

SSO across different domains

How can I implement single sign on across domains? I have two or more domains and I want all of them to authenticate through one server using SqlMembershipProvider (ASP.NET 2.0 membership database) I have domain foo.com which hosts the asp.net…
2
votes
3 answers

How do I associate my application data to a user in a ASP.NET MemberShipProvider?

I'm just starting out learning ASP.NET MVC. I'm working on a project created with the standard project template which by default uses a SqlMembershipProvider. This has automatically created a ASPNETDB.mdf database in my project to hold membership…
Eric Anastas
  • 21,675
  • 38
  • 142
  • 236
2
votes
1 answer

Sharding with ASP.NET's SqlMembershipProvider?

I'm considering writing a blog hosting app in ASP.NET MVC. I'm new to .NET, but I'm reasonably competent in the LAMP world. My question concerns horizontal scaling of user data. Each user with a blog would have something like 6 tables in a…
royco
  • 5,409
  • 13
  • 60
  • 84
2
votes
3 answers

ASP.NET sessions timing out using SQL Membership Provider

I changed over from the in process membership provider to the sql membership provider to stop people losing their sessions when the website process recycled, but sessions still seem to time out. Are there any other things (apart from the session…
2
votes
2 answers

Can DotNetNuke use another database with existing tables for ASP.NET default membership provider?

We have a case where a web site already exists and is using ASP.NET default membership provider storing Users' data on a SQL Server database. I need to add a new DotNetNuke site that can share the same membership tables with the existing site. Is…
Emad Gabriel
  • 3,677
  • 7
  • 37
  • 49
2
votes
1 answer

SqlMembershipProvider administration

Before I embark on writing my own solution to this issue, can anyone point me to a pre-built solution for managing standard user details when using the SqlMembershipProvider? The solutions I have found through Google seem to either be half baked…
user32826
2
votes
2 answers

Question: Authentication using SQL Membership Provider

I have checked the following article on how to use the sqlMembershipProvider. My question, is this the way most of the asp.net applications authentication schemes implemented. Is there any other method, any references will be quite helpful for…
Chaitanya
  • 1,698
  • 5
  • 21
  • 41
2
votes
0 answers

System.Web.Helpers.Crypto.VerifyHashedPassword passwordFormat="Clear"

I eventually want to use this example: How to do Active Directory authentication in Razor (cshtml) to put authentication in place - however first I need my application to just use forms authentication. I used the Starter Site form WebMatrix as an…
user3795152
  • 73
  • 10
2
votes
4 answers

SQLMembershipProvider - Adding membership to an existing database. Setting permissions

I am adding membership-related schemas to an existing database (lets call it myDatabase) following those instructions. As a results the number of tables, views and stored procedures are being created in myDatabase. The next step is to modify…
kristof
  • 52,923
  • 24
  • 87
  • 110
2
votes
1 answer

Delete SQL Membership from Website

My company had a website where we manage our timesheets which is developed in ASP.NET 2.0. Recently we made a decision to use LDAP Authentication instead of using the SQL Membership that we used previously. Now this is generating all sorts of…
Zed_Blade
  • 1,009
  • 3
  • 18
  • 38