Start Free Trial
Come for the solution, stay for everything else.
Start Free Trial
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?
8/22/2022 - Mon
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?
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
Log in or sign up to see answer
Become an EE member today
7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Ok, thanks for the discussion. I gave you the points.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
Plans and Pricing
Certified Expert Program
© 1996-2022 Experts Exchange, LLC. All rights reserved. Covered by US Patent