sqlmembershipprovider

SqlMembershipProvider initialize method not being called

I have done a custom implementation of MembershipProvider but for some reason the initialize method is not being invoked and thus my provider is not setting up properly from the config parameters, who invokes it in the first place and how do i get it to work. ...

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 web.config for the application to use CustomizedMembershipProvider <membership defaultProvider...

SQLMembershipProvider - source code

Where can I find the source code for SQLMembershipProvider (.NET2.0)? Is it available? ...

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 'example solutions' or unsuitable for every day usage. Regards Richard ...

Is there an open source Asp.net membership administration GUI (like netwebadmin, but works online)?

Visual studio 2005 comes with a project that lets you use the asp.net membership provider to look up, add, edit, and delete users and roles. It unfortunaltly can't be used online, and in order to have an adminiistration area in your site, it appears that you have to code your own admin interface. Is there an opensource, or free project...

ASP.NET sessions timing out using SQL Membership Provider

Hi. 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 timeout variable set in the web.config) that would cause a session to timeout when usin...

Porting Active Directory Authentication to use SQL Membership Provider

I'm looking at moving my application from using active directory membership provider to using sql server provider. The main hiccup we are looking at is no being able to retrieve the user passwords from AD. Does anybody have any ideas? Anybody think I should just leave AD alone? ...

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 database. I'd like to plan for horizontal scaling so that 20% of the users could be on one data...

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 membership database and another domain bar.com which wants to authenticate through foo.com. I f...

Making user login persistant with ASP .Net Membership

I have a website that is built in ASP.NET 3.5 & SQL Server 2005, using the sql membership provider, and presumably forms authentication. Since security needs on my site are very low, I would like to authenticate once, and then keep the log in persisted indefinitely (without giving the user the choice). What is happening is that the use...

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 providing this key to the provider? Does the ProviderUserKey become part of the Principa...

Disabling account lockout with the SqlMembershipProvider

How do I disable the account lockout feature of the SqlMembershipProvider? The MSDN documentation for the MaxInvalidPasswordAttempts property does not specify how to disable it. If I can't find the correct way to do it I will set the maxInvalidPasswordAttempts attribute to the maximum value of an int which may effectively achieve the s...

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 password recovery process if I have to, but I'd like to avoid that. ...

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 this error: System.Security.Cryptography.CryptographicException: Padding is invalid and c...

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, country) which is then stored in the apps database. I want to make the site role based, ...

Inject a MembershipProvider into ASP.Net MVC AccountController

Asp.Net MVC 1.0 project templates include an AccountController class, which supports constructor injection: public AccountController(IFormsAuthentication formsAuth, IMembershipService service) { FormsAuth = formsAuth ?? new FormsAuthenticationService(); MembershipService = service ?? new AccountMembershipService(); } An A...

Is it possible to change the username with the Membership API

I am using the default sql membership provider with ASP.NET and I would like to provide a page to change the user's username. I believe I am sure I could do this with a custom provider, but can this be done with the default provider? Second part of my question is: Should I allow users to change their username after the account is create...

'System.Web.Security.SqlMembershipProvider'

I am running my website on IIS. The default page shows this message: Server Error in '/Enterprise/EnterpriseASP' Application. Unable to cast object of type 'System.Web.Security.SqlMembershipProvider' to type 'EnterpriseASPClient.Core.EnterpriseMembershipProvider'. Description: An unhandled exception occurred during the ex...

Do most people use .NET's SqlMembershipProvider, SqlRoleProvider, and SqlProfileProvider?

Do most people use .NET's SqlMembershipProvider, SqlRoleProvider, and SqlProfileProvider when developing a site with membership capabilities? Or do many people make their own providers, or even their own membership systems entirely? What are the limitations of the SQL providers that would make you roll your own? Is it easy to extend t...

CreateUserWizard and ContinueButton control

Hello, 1) A) One of the CreateUserWizard’s optional controls is also ContinueButton control. This control raises ContinueButtonClick event ( if CommandName is set to Continue ), but what is the purpose of this event? Thus, when should ContinueButton control be used? B) CreatingUser event is raised by clicking on CreateUserWizardst...