January 2010 - Posts

14
Comments

Redirect unauthorized users to Custom Access Denied page instead of login page by guru_sarkar

Scenario: Say you are using Forms Authentication and have set up authorization in your web.config to allow access to particular users or roles and/or denying anonymous access. 1: Deny Anonymous users :When an unauthenticated user tries to access a secured...
1
Comments

Asp.Net mebership creates two users in aspnet_Users table by guru_sarkar

While using asp.net membership and roles you will see two seperate entries for same user in aspnet_Users table. But you will have a single entry for that user in aspnet_Membership table. The reason for that is you have set applicationName for your membership...
4
Comments

Asp.Net Roles not working when site published on server by guru_sarkar

Problem: I have seen people complaining their asp.net user roles won't work as desired when they publish their site on server. Everything works locally when they run through Visual Studio. Potential Reason: applicationName attribute is missing from role...
More Posts