asp.net-membership

Why does my asp.net membership login page not work with a redirect?

I have this membership site setup on my local machine using the ASP.NET membership provider. When I go to: http://localhost/admin/ It redirects me to http://localhost/Login.aspx?ReturnUrl=%2fadmin%2fDefault.aspx Which is fine. But after I put in my login information, the page just seems to refresh. It doesn't actually log me in, ...

Something really confusing about how roles and membership tables establish a relationship

Hello, I know how to create users and assign them to roles etc, but when I tried to dig a bit deeper into how roles and membership tables are able to establish a relationship between each other, I got totally lost ( BTW – I do know how foreign/primary keys work ;) ) BTW - I've created tables in databases using aspnet_sqlreg wizard ...

If authentication ticket also contains information about roles, then why...?

Hello, Q1 – Reason as to why native UrlAuthorizationModule doesn’t understand roles is due to the fact that roles information is stored in managed object implementing IPrincipal interface, to which native modules don’t have access to. A) But if native UrlAuthorizationModule understands authentication ticket, and thus can work in co...

MembershipUser.ChangePassword fails without warning

If I call user.ChangePassword(oldpass,newpass), and the old password is wrong, or the new password does not meet the provider's complexity requirement , the method fails without warning. is there any way i can find out if there is an error and what the error was. I can always put these checks in my code, but there should be a way to do...

asp.net active directory logging in

hi, i would like to be able to login on a webpage using a valid active directory username and password. user name and password are entered in textboxes. if they are correct then i would like to redirect to another page. how can this be coded. in a second task after some code is performed, log in as an administrator using code and un...

ASP.NET Membership: how to set the user as logged in

I am trying to get the Membership Provider to work. So far I have: <asp:Login ID="Login1" runat="server" OnAuthenticate="Login1_Authenticate"> </asp:Login> calling : protected void Login1_Authenticate(object sender, AuthenticateEventArgs e) { if(Membership.ValidateUser(Login1.UserName, Login1.Password)) ...

Ektron user change password?

I have a Ektron client with Ektron installed. They would like to add the functionality to change a password to something they want. Do I need to be concerned with the ektron part or just go ahead and make my edit? Is there an easy way to do that? Any links to information would be greatly appreciated. ...

ASP.NET Membership with more than 2 million users - any problem(s)??

Will ASP.NET Membership handle a scenario with more than 2 million users? Does anybody have good or bad experiences with (very) large scale use of this provider? ...

Implementing a Custom Membership Provider with slightly bizarre requirements

Building a new Mobile Web Platform for Mobile Users to purchase & download content on their handsets. In the past we've used a completely bespoke login mechanism but I'm investigating using a Custom Membership Provider for the next version of the Platform. The thing is, we have some slightly odd "login" mechanism requirements, so I'm no...

ASP.NET TimeOut expired on: Membership.ValidateUser(username, password)

The same copy of my asp.net web application running on another server keeps throwing this error every now and then: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. The error occurs on the follow...

Get MembershipProvider's Properties from Web.Config

I derived a class from MembershipProvider in System.Web.Security with the following definition: public class RedditMembershipProvider : MembershipProvider { public RedditMembershipProvider() { } public override int PasswordAttemptWindow { get { return 10; } } /...

ASP.NET Membership Error

I'm using ASP.NET MVC. I inserted ASP.NET membership tables into my database and i'm getting the error written below. Solution maybe? Thanks. The 'System.Web.Security.SqlMembershipProvider' requires a database schema compatible with schema version '1'. However, the current database schema is not compatible with this version. You ma...

Implementing OpenID in ASP.net "Properly" - Membership or Authentication Provider?

There are several ways to use OpenID on ASP.net sites, but none of them seem to use the existing mechanism of Membership and Authentication Providers. I wonder what the proper way would be to create a site that solely relies on OpenID? Continuing to use Forms Authentication but implementing a variant of the SqlMembershipProvider that do...

How to not use ASP.Net Membership Security Question and Answer for custom password recovery?

Hi, I don't want to have the security question and answer feature that ASP.Net Membership Provider gives, but I DO want to enable a lost/forgotten password page. This page would be where a user would enter his/her email address and an email would be sent to that address if the user was registered for them to reset their password via a l...

How to Get List of User/Profile from Membership Provider?

Hi there I am utilising this Membership Provider. I am stuck with getting the User List + Profile (FirstName, LastName, Title etc etc) I know that there is a method for Membership.GetAllUsers() but I don't know how to combine this with FirstName, LastName that I stored in Profile Provider. Thanks ...

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...

How to handle relationships to users from other tables in ASP.Net MVC?

At the table level I'm setting aspnet_User.UserID as foreign key of UserID in the other tables (like Posts.UserID, so each post has an owner). Is that the way to go? When I create the LINQ to SQL model, should I include the aspnet_User table? When I create a post (record in the Posts table, a Post object), how do I set the relationship...

ASP.NET Membership Preventing People Logging in as the same user on different machines at the same time

One of the security requirements for my web based system is to prevent people logging in as the same user on different machines at the same time. E.g. to ensure that people cant all log in using the same password/share passwords. Is there a way to achieve this using the ASP.NET membership provider. Will I need to manually store info on...

Return MembershipUser using WCF service

Hi all, I have WCF service to get users from the ActiveDirectory. I receive parameter from the request (user name) and create response with MembershipUser property. from some reason, the connection get close. the service operation find the user and create the response successfully. when executing the row: "return response;" i got excepti...

Asp.NET Forum and Blog sharing Membership

I am looking to create a blog and a forum on a new website. I would like for users to register to post in the forums and post comments on the blog as well as having thier own public profile page. I have experience with BlogEngine.NET so was looking to use that. I have no experience with .NET forum software at this time so I am researchi...