View Single Post
  #1 (permalink)  
Old May 3rd, 2007, 10:58 AM
swifty_programmer swifty_programmer is offline
Authorized User
Join Date: May 2007
Location: moeskroen, henegauwen, Belgium.
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to swifty_programmer
Default failed to login with membershipprovider

Hi all,
I'm making a quite simpel website for the support in my company.
Not everyone should be able to do all the actions (ex: add customer...) so I want a role based security on my webpage.
I choosed to store credentials and roles in a SQL 2005 Enterprise Ed. DB through the command "asp_reg..."
DB was created successfully(name: membershipDB).
I've added rolemanager (with provider) and membership provider in de web.config.
I'm able to add users, roles... via Web Site Administration Tool.
But when I want to login with one of those users, I can't...
This is REALY frustrating!
I've tried the Membership.ValidateUser(username, password) and it returns false?!?... I've checked every character in my code three times and I do not understand. All help are welcome!