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
1
vote
2 answers

ASP.NET Authentication and Provider

I am trying to navigate from one website on my localhost to second website on my localhost. Both sites have their own membership provider. I'm trying to use a FormsAuthorizationTicket from site #1 to SSO a user into site #2. Currently I'm getting…
Adam
1
vote
0 answers

SQLASPMembershipProvider not connecting to Database

I have created a web app using the SQLASPMembership provider and and everything works fine off my development machine. However when I publish it out to the web server it fails to connect to the database (at least that is what I think is happening,…
1
vote
1 answer

using login controls with sql server (not express)

I installed Visual Studio 2008 Professional(updated with SP1), then I uninstalled SQL server 2005 Express and installed SQL Server 2005 Standard. now I am not able to add 'SQL Server Database' to the project - it says Connections to SQL Server…
1
vote
1 answer

Use asp.net membership via LDAP

We have an intranet system that uses asp.net with the sql membership provider. We have about 400 users setup in the intranet. These can include employees, contractors, etc. I'm trying to find out if there is a way to expose our existing asp.net…
1
vote
2 answers

securing pages in a folder with user roles?

I am managing different roles pages in different folders in my application rote. Admin folder has all pages of admin. User has all pages of loged in user. Please advice what way I should adopt to check that user is valid and have correct permissions…
user576510
  • 5,777
  • 20
  • 81
  • 144
1
vote
0 answers

ASP.net MVC application logging out very quickly after logging in

This is probably a very simple problem but I cant see the solution and its really beginning to bug me! I have a simple ASP.Net MVC2 application which is intended as a learning aid which requires users to log in by providing username and password.…
Morrislgn
  • 3,717
  • 4
  • 24
  • 26
1
vote
2 answers

Multiple membership providers in ASP.NET (web.config + sql)

I know this question is asked (and answered) a lot already, but I believe my situation is unique. We are using the ASP.NET SqlMembershipProvider. However, we also have some less-secure content we would like to secure by adding users directly to the…
1
vote
1 answer

SQLMembershipProvider source code compatability with latest mvc

I got the source code from here http://weblogs.asp.net/scottgu/archive/2006/04/13/442772.aspx is it compatible with latest ASP.net MVC 3?
AppDeveloper
  • 927
  • 11
  • 21
1
vote
0 answers

ClientCredential usage

I'm a beginner using WCF Service, and I'm trying to understand how the ClientCredential methods work. I am able to successfully use authentication using wsHttpBinding and SQLMembershipProvider. However, I would like to know how ClientCredential does…
Camille
  • 25
  • 1
  • 4
1
vote
1 answer

Migrating from ASP.NET Membership Provider to IdentityServer

I have some applications which were written in ASP.NET Web Form standard without using dependency injection (.NET version 2, 3.x, 4.x). We have used Membership Provider with MS-SQL server back-end for authentication. Recently, we have decided to…
1
vote
1 answer

Membership Provider to Allow Social Networking Sites Login

I recently created a custom membership provider to my asp.net (4.0) site and a custom role provider so that I have total control over custom attributes or properties for members of my site. BUT, I also want to allow users to "sign-up" to be a…
clockwiseq
  • 4,189
  • 9
  • 38
  • 61
1
vote
0 answers

Object reference not set to an instance of an object at System.Web.Security.FormsAuthentication.SetAuthCookie

I have created WCF project hosted with MVC and would like to implement WebSecurity.Login(string,string) which is as follows public bool LoginService(string UserName, string Password) { bool answer = false; try { …
Ishwor Khanal
  • 1,312
  • 18
  • 30
1
vote
2 answers

ASP.net login control membership provider

Just 2 days ago I got to learn log-in controls and forms authentication in ASP .NET. Before then I used to create my own database my user table and my own logic for log-in and log-out using sessions and sql server. The new ways is cool as it allows…
necixy
  • 4,964
  • 5
  • 38
  • 54
1
vote
2 answers

Can't add user in ASP.NET Web Site Adminstration Tool

I have added the SQL Role Provider and SQL Membership Provider to an existing application and set the authentication mode to Windows. I have created roles, but I cannot add users. In the Security Tab of Web Site Administration Tool, I search for my…
1
vote
1 answer

C# MembershipUser.ChangePassword fails for one user only?

I'm using the change password feature of the standard AspNetSqlMembershipProvider in my ASP.NET MVC-2 app: MembershipUser user = Membership.GetUser(userId); string pwd = user.ResetPassword(); if (user.ChangePassword(pwd, confirmPassword)) { //…
JK.
  • 21,477
  • 35
  • 135
  • 214