sqlroleprovider

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

假装没事ソ 提交于 2019-12-20 10:46:12
问题 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 the SQL providers to provide additional functionality? For Reference Per Scott Gu's Blog, Microsoft provides the source code for the SqlMembershipProvider so that

SqlRoleProvider on IIS8 Express

眉间皱痕 提交于 2019-12-12 14:28:57
问题 My web application (a WCF service) uses SqlRoleProvider , which works fine on Visual Studio Development Server . Switching it to IIS8 Express causes it to throw a NullReferenceException though: Roles.IsUserInRole(username, role) // neither of them actually null I could not find a hint for this exception in the IsUserInRole method documentation. Switching back to Visual Studio Development server makes it work. What is the cause of this exception, and how could I fix it properly? The project's

SqlRoleProvider: NullReferenceException when calling Roles.GetRolesForUser

夙愿已清 提交于 2019-12-07 01:03:21
问题 Scenario: WCF Service using SqlRoleProvider for authentication with a Sql Server 2012 Database server. WCF is hosted on a IIS7 webserver. please see this error: System.NullReferenceException: Object reference not set to an instance of an object. at System.Web.Security.Roles.GetRolesForUser(String username) RoleManagement is enabled. On my local development machine (server 2012, iis7) this works fine. When I log in and call the method the roles are retrieved. On the other server (test

SqlRoleProvider: NullReferenceException when calling Roles.GetRolesForUser

吃可爱长大的小学妹 提交于 2019-12-05 04:54:06
Scenario: WCF Service using SqlRoleProvider for authentication with a Sql Server 2012 Database server. WCF is hosted on a IIS7 webserver. please see this error: System.NullReferenceException: Object reference not set to an instance of an object. at System.Web.Security.Roles.GetRolesForUser(String username) RoleManagement is enabled. On my local development machine (server 2012, iis7) this works fine. When I log in and call the method the roles are retrieved. On the other server (test environment) it's not working. I can login (user is authenticated with user and pass against sql server

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

谁说胖子不能爱 提交于 2019-12-03 00:15:28
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 the SQL providers to provide additional functionality? For Reference Per Scott Gu's Blog , Microsoft provides the source code for the SqlMembershipProvider so that you can customize it, instead of starting from scratch. Just an FYI. We use everything except the

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

大城市里の小女人 提交于 2019-12-01 09:34:25
问题 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 SQL Server Express. They do not support newer offerings such as Microsoft SQL Azure and Microsoft SQL Server Compact. However, when I run the custom aspnet_regsql scripts for Sql Azure http://support.microsoft.com/kb/2006191 and then point my web