membership-provider

System.Web.Providers.DefaultMembershipProvider having performance issues/deadlocks

℡╲_俬逩灬. 提交于 2019-12-01 20:14:22
问题 We have started to use the updated System.Web.Providers provided in the Microsoft.AspNet.Providers.Core package from NuGet. We started to migrate our existing users and found performance slowing and then deadlocks occurring. This was with less than 30,000 users (much less than the 1,000,000+ we need to create). When we were calling the provider, it was from multiple threads on each server and there were multiple servers running this same process. This was to be able to create all the users we

Unable to initialize provider. Missing or incorrect schema. for MySql.Web connector

跟風遠走 提交于 2019-12-01 16:59:22
Hey guys and gals running into a little issue here.. I'm trying to use MySql Connector 6.2.2.0 for membership and role providers.. The issue I'm having is: Unable to initialize provider. Missing or incorrect schema. <authentication mode="Forms"/> <roleManager defaultProvider="MySqlRoleProvider" enabled="true" cacheRolesInCookie="true" cookieName=".ASPROLES" cookieTimeout="30" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="All" > <providers> <clear /> <add name="MySqlRoleProvider" type="MySql.Web.Security.MySQLRoleProvider, MySql.Web, Version=6.2.2.0

bare bones MembershipProvider in sitecore

不羁岁月 提交于 2019-12-01 07:19:52
问题 I'm trying to implement a really really simple MembershipProvider for sitecore, but i'm not sure if it's too simple to actually work. Basically we already have a custom store for user data so i know that a customer MembershipProvider is the way to go. However my app will not log anyone in, a different part of the system is responsible for that. Also, it doesn't care who exactly is logged in, just whether they are or aren't (the who part is irrelevant in the content area of my site). So what

how to show list of registered users to admin in asp.net mvc4 application

感情迁移 提交于 2019-12-01 02:27:08
问题 I have created asp.net mvc4 application using razor engine, im new to this technology and trying to figure out a way to display a list of registered users to the admin after admin logs in. Membership is using system.web.providers. can anyone tell- firstly how to create separate roles for users, admin using entity framework secondly how to get and display the list of all registered users with different roles to the admin. Thanks in advance. Regards 回答1: [Authorize(Roles = "Admin")] public

Implementing Custom Membership user and Custom Membership Provider

杀马特。学长 韩版系。学妹 提交于 2019-12-01 00:37:06
References http://msdn.microsoft.com/en-us/library/6tc47t75%28v=VS.80%29.aspx http://msdn.microsoft.com/en-us/library/ms366730.aspx Question In the 2nd link precisely under heading Create a Custom Membership Provider you will note that they mention this You will need to create a custom membership provider that supports both your custom membership user type, and your custom membership data store. The GetUser and CreateUser methods of the custom membership provider can be written to return objects of the custom membership user type. below is my custom membership user with custom fields Custom

ASP.NET MVC 3 Ninject Custom Membership and Role Provider

余生长醉 提交于 2019-11-30 20:33:09
Hi i got some problems enabling custom Membership and Role Provider, i got following error: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. System.InvalidOperationException: Default Membership Provider could not be found. It's pointing to my mvc3.ninject kernel.Inject(Membership.Provider) My MVC3.Ninject in app_start: private static void RegisterServices(IKernel kernel) { kernel.Inject(Membership.Provider); kernel.Inject(Roles.Provider); kernel.Bind

ASP.NET Membership C# - How to compare existing password/hash

眉间皱痕 提交于 2019-11-30 14:26:17
问题 I have been on this problem for a while. I need to compare a paasword that the user enters to a password that is in the membership DB. The password is hashed and has a salt. Because of the lack of documentation I do not know if the salt is append to the password and then hashed how how it is created. I am unable to get this to match. The hash returned from the function never matches the hash in the DB and I know for fact it is the same password. Microsoft seems to hash the password in a

Sample Code for Creating Custom Membership Provider

天大地大妈咪最大 提交于 2019-11-30 10:14:59
I am writing an MVC 3 application and I am trying to implement my own custom membership provider (following the sample in Apress' Pro ASP.NET MVC 3 Framework). I created my custom class, inherited from MembershipProvider and (using ReSharper) implemented all 27 of the methods with NotImplementedExceptions. Now, I have overridden the ValidateUser method as the book states and it works fine, but I would like to make my provider more robust and implement the other methods (e.g. set MinRequiredPasswordLength and GetNumberOfUsersOnline). Is there some sample code that I can use to start populating

ASP.NET MVC 3 Ninject Custom Membership and Role Provider

落爺英雄遲暮 提交于 2019-11-30 04:51:08
问题 Hi i got some problems enabling custom Membership and Role Provider, i got following error: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. System.InvalidOperationException: Default Membership Provider could not be found. It's pointing to my mvc3.ninject kernel.Inject(Membership.Provider) My MVC3.Ninject in app_start: private static void RegisterServices

How do you handle Membership/Roles when using NHibernate?

与世无争的帅哥 提交于 2019-11-29 22:39:07
I'm about to kick off a new project using NHibernate and ASP.Net MVC and have come upon the question of membership. I'm wondering if I should use a 3rd party NHibernate Membership/Role provider, create my own, or just skip the providers all together. So far I've looked at: Manuel Abadia's NHCustomProviders - It seems like a lot of configuraton, not sure if I want to put all that in my web.config. Leo Vildosola's NHibernateProvider - Which doesn't appear to be supported by the project owner anymore since he doesn't use NHibernate anymore. Eucalypto - I like the table structure, but am a bit