steva
asked on
ASP.NET 2.0 Login debug
For some reason the users I've created with the CreateUser wizard can't login with the Login control. They all get the error message:
Your login attempt was not successful. Please try again.
Is there any way to debug this type of problem to see what the authentication code didn't like?
Thanks,
steva
Your login attempt was not successful. Please try again.
Is there any way to debug this type of problem to see what the authentication code didn't like?
Thanks,
steva
ASKER
Ok, I have this working now. I had added a membership section to my web.config file so I could lighten the credential requirements (only 5 characters needed for password and all can be alphanumeric, and no security question/answer required). Apparently the Login control I was using had been created before I made the change to web.config and was still thinking the unmodified way. Reverting to the original web.config, without my membership section, and deleting the old Login control and dragging a new one onto the page got things working.
Still, the question I had was, Is there any way to debug the login phase. It would have been nice if I could have gotten back a message like "password needs to be 7 characters with at least one character non-alphanumeric" or "login control doesn't match database" etc. Or a way to step through the login control code to see where it branches to the reject path.
Still, the question I had was, Is there any way to debug the login phase. It would have been nice if I could have gotten back a message like "password needs to be 7 characters with at least one character non-alphanumeric" or "login control doesn't match database" etc. Or a way to step through the login control code to see where it branches to the reject path.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok, thanks for the discussion. I gave you the points.
did you set up the DB? Can you use the WSAT from VS to create users?
Can anyone long in?
etc.