I have set up security for my site through the Site Admin Tool through VWD. I'm using the ASPNETDB.MDF way. My web.config has authentication set to forms. I have a default.aspx with nothing on it and a login.aspx with a login control on it. I have one user
in my database and I can't get it to authenticate. Even when I type in my exact username and password is spits back with "Your login attempt was not successful. Please try again."
Did you use the Site Amin tool to create the user also?
The problem is that your user information is porbably not the same as you enter. So try to remove or add a new user and check if you can login with that user.
Yes, I've used the Site Admin Tool to create several users. I've tried them all and none of them work. None of them authenticate.
If I'm getting an error message from the form in red this means that it IS connecting to the database and actually checking; however, it's failing to match a user. I'm not getting any application errors.
Okay so the plot thickens. It turns out it WILL work but only if I have chosen "View in browser" from VWD. But NOT if I type into the URL "http://localhost/dorknozzle". Why is this? Thanks.
I'm still not able to authenticate by typing my virtual directory right in to my browser. I ALWAYS have to go through the VWD "View in browser" option. How can I get this to work without going through the VWD?
Please help, I'm dying to play with these new security classes!!! Thanks.
It's not something I can post! It's the login control! <asp:login runat="server" /> That's it!
Here's the deal. Usually I test my Web sites by going to http://localhost/virtualdirectory but when I'm trying to build sites with the VWD authentication won't work that way. Apparently I have to use the Website > View in browser command in VWD to get my
authentication to work and even then it only works sometimes, it's VERY fickle.
I DO NOT understand what the Asp.net development server icon is for in my system tray or any of this. I don't understand why I can't access my applications the way I used to and have them work!
I have a feeling it has something to do with the ASP.Net development server (whatever that is) and the ASPNETDB.MDF file and detaching. Please if anyone knows a resource that will explain this crap to me for the love of everything good and holy tell me!!!
This is so freaking frusturating this whole trying to develop with the VWD. Please help, thanks.
Same here. But I can't login even by "View in browser". Already recreated users couple of times. Make user a member of a role. Nothing wolks. Have you solved this? Thanks.
I had trouble with my admin tool running, and later even the application running, because my firewall was interfering with something (i don't know what) happening behind-the-scenes while running an asp.net 2.0 application.
If you do have a firewall, I suggest try allowing ALL traffic and see if that helps.
I have the same problem. If I try to login typing my (NO-IP) DNS, it doesn´t autenticate the user (
Your login attempt was not successful. Please try again).. If I press F5 in VWD, it does the same. But If press ctrl +F5 ,
start with no debugging, it simply works! .. I really don´t know whats going on, If someone can just throw me a line, y would really apreciate.
Wayward780
Member
90 Points
18 Posts
Login won't authenticate
Dec 30, 2005 12:26 AM|LINK
Any suggestions? Thanks.
Wayward780
Fredrik N
All-Star
29674 Points
5334 Posts
MVP
Re: Login won't authenticate
Dec 30, 2005 07:34 AM|LINK
Did you use the Site Amin tool to create the user also?
The problem is that your user information is porbably not the same as you enter. So try to remove or add a new user and check if you can login with that user.
MVP, ASPInsider, WCF RIA Services Insider
My Blog
Wayward780
Member
90 Points
18 Posts
Re: Login won't authenticate
Dec 30, 2005 11:04 AM|LINK
If I'm getting an error message from the form in red this means that it IS connecting to the database and actually checking; however, it's failing to match a user. I'm not getting any application errors.
Please help!
Wayward780
Wayward780
Member
90 Points
18 Posts
Re: Login won't authenticate
Dec 30, 2005 11:37 AM|LINK
Wayward780
Wayward780
Member
90 Points
18 Posts
Re: Login won't authenticate
Dec 31, 2005 02:46 PM|LINK
Please help, I'm dying to play with these new security classes!!! Thanks.
Wayward780
app_blocksGu...
Member
10 Points
2 Posts
Re: Login won't authenticate
Dec 31, 2005 06:53 PM|LINK
post the code which is failing to work.......
Wayward780
Member
90 Points
18 Posts
Re: Login won't authenticate
Dec 31, 2005 09:14 PM|LINK
Here's the deal. Usually I test my Web sites by going to http://localhost/virtualdirectory but when I'm trying to build sites with the VWD authentication won't work that way. Apparently I have to use the Website > View in browser command in VWD to get my authentication to work and even then it only works sometimes, it's VERY fickle.
I DO NOT understand what the Asp.net development server icon is for in my system tray or any of this. I don't understand why I can't access my applications the way I used to and have them work!
I have a feeling it has something to do with the ASP.Net development server (whatever that is) and the ASPNETDB.MDF file and detaching. Please if anyone knows a resource that will explain this crap to me for the love of everything good and holy tell me!!!
This is so freaking frusturating this whole trying to develop with the VWD. Please help, thanks.
Wayward780
akaKlen
Member
91 Points
41 Posts
Re: Login won't authenticate
Jan 22, 2006 07:08 PM|LINK
Efterhanden
Member
95 Points
19 Posts
Re: Login won't authenticate
Feb 10, 2006 11:16 PM|LINK
Do you use a firewall?
I had trouble with my admin tool running, and later even the application running, because my firewall was interfering with something (i don't know what) happening behind-the-scenes while running an asp.net 2.0 application.
If you do have a firewall, I suggest try allowing ALL traffic and see if that helps.
guillefd
Member
5 Points
1 Post
Re: Login won't authenticate
Feb 11, 2006 07:22 AM|LINK
I have the same problem. If I try to login typing my (NO-IP) DNS, it doesn´t autenticate the user ( Your login attempt was not successful. Please try again).. If I press F5 in VWD, it does the same. But If press ctrl +F5 , start with no debugging, it simply works! .. I really don´t know whats going on, If someone can just throw me a line, y would really apreciate.