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

create FK to model, from aspnet forms validation tables

I've recently created a MVC 3 ASP.net application (using VB). I have also created forms validation by running aspnet_regsql. I used this to create the table in the same database as my application uses. I am trying to work out how to create a new…
jason
  • 3,821
  • 10
  • 63
  • 120
0
votes
0 answers

Login stalls after first user has logged in

I am putting out a new version of my web site soon and have a problem with users logging in. Once one user logs in no other users can log in because the page just stalls after clicking the login button. I am using SqlMembershipProvider. The login…
Mark Williams
  • 583
  • 7
  • 18
0
votes
1 answer

Ignoring ProviderUserKey in Custom Role Provider Implementation

I have no use for the ProviderUserKey in the MembershipUser object, as my roles database has it's own ID's. If I'm using C#, how do I call the membershipuser constructor so that it creates the user without this key? What are the implications of not…
Caveatrob
  • 12,667
  • 32
  • 107
  • 187
0
votes
3 answers

CustomSqlMembership throws server error intermittently

I've a asp.net MVC app deployed to server it uses forms authentication and uses CustomSqlMembership provider basically I've not changed anything in the SqlMembershipPRovider just copied the source from MS and included the source in my project and…
AppDeveloper
  • 927
  • 11
  • 21
0
votes
1 answer

Lost on membership provider

I'm confused in the proper time to use SQLMembershipProvider vs my own custom provider. I'm building a system where users can create accounts; and then create objects in our system. When a user logs in, he should be able to see and edit the objects…
0
votes
0 answers

Modify existing ASP.NET MVC 4.x framework with local sql server membership role based schema to use Oauth2.0

I have an old ASP.NET MVC 4.x framework (c#) webapp that uses sql server membership users and roles. It has the SQL server schema that with the table dbo.AspNetUsers table instead dbo.aspnet_Users. Our customer now wants the webapp to authenticate…
0
votes
1 answer

Implement pbkdf2 in aspnet membership provider - Non-negative number required

I have a requirement to implement Pbkdf2 to secure a very old application that uses aspnet membership provider. I am following this answer which is recent and useful, but unable to follow what is inside MyRfc2898DeriveBytes class and it is giving me…
Samra
  • 1,815
  • 4
  • 35
  • 71
0
votes
1 answer

Has anyone successfully integrated Yet Another Forum 1.9.x with an existing asp.net site?

I'd like to integrate Yet Another Forum (yafnet) into my asp.net website using the same membership provider as my current website - an out-of-the-box aspnet sqlmembership provider. Has anyone done this? And is it worth the trouble? The…
0
votes
2 answers

Asp.net universal providers error

i have installed asp.net universal providers, but after changing the configuration i am getting error "EF Providers require MultipleActiveResultSets=True for System.Data.SqlClient connection strings" i have changed the connection string also below…
0
votes
1 answer

Using a Membership Provider for Private Site

I can't be the first person to have this problem, I must be missing an easy solution. I have inherited a non-public ASP.NET site secured using a forms authentication with a SqlMembershipProvider to secure the site. Everything is working fine with…
0
votes
1 answer

Using AES256 as "decryption" in MachineKey for SqlMembershipProvider

I'm creating custom registration forms for Forms Based Authentication for a SharePoint 2010 site, and storing passwords as 'Encrypted' in the aspnet_Membership database table. My setting in web.config shows that the 'decryption' parameter is…
QMKevin
  • 1,101
  • 3
  • 13
  • 26
0
votes
2 answers

asp.net configuration doesn't show my application name

I want to set the application name for my web app in the asp.net configuration, but nothing is working for me. It always says "Application:/". I have put quite a few hours into searching for an answer. I'm sure it's something simple (as it always…
Theo
  • 2,609
  • 1
  • 26
  • 27
0
votes
1 answer

Authenticate user from membership tables in Java

I have a asp.net web application which is using membership for authentication and authorization. Now I have develop the application in Java which authenticate the user from the same database [i.e. from the membership tables]. How to do that?
Chris
  • 2,293
  • 11
  • 48
  • 86
0
votes
1 answer

How to fix this error: Key not valid for use in specified state after move to another server

I have an asp.net application, using aspnetsqlMembership provider for encrypt/descrypt user profile data. Now, we decided to move our application to a new server, but I am getting this error on the new server when I am trying to create a new user…
Hena
  • 11
  • 1
  • 2
0
votes
0 answers

Why does my override Initialize not get called?

I have a class derived from SqlMembershipProvider with a function Initialize that overrides the original. This function is not being called. I am using Microsoft membership services. I need to use a dynamically defined connection string. I need to…
odbdux
  • 43
  • 9