Link to home
Start Free TrialLog in
Avatar of steva
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
Avatar of WanaBRich
WanaBRich
Flag of United States of America image

you need to give more information.

did you set up the DB? Can you use the WSAT from VS to create users?

Can anyone long in?
etc.
Avatar of steva
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.

ASKER CERTIFIED SOLUTION
Avatar of WanaBRich
WanaBRich
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of steva

ASKER

Ok, thanks for the discussion.  I gave you the points.