How can I determine reason for the login error which is occuring?
I see no status codes or anything available in the LoginError event.
I have implemented the membership capabilities with some minor
modifications, the biggest being that I am using a different database name
from the standard one. I have created my users using the ASP.Net
Configuration tool which works fine. For some reason, I always get a
failure when logging in. I am sure I am entering in the correct password,
and I have deleted and re-added the user.
If I call GetUser(login1.UserName), I successfully retreive the user, why is
the login failing? How can I find out?
thanks for your help in advance.
- Daniel
Dominick Baier [DevelopMentor] - 28 Dec 2005 14:14 GMT
hi,
asp.net emits useful information to the event log - have a look there
if this does not help - start an instance of sql profiler to see that you
really hit the database.
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
> How can I determine reason for the login error which is occuring?
>
[quoted text clipped - 13 lines]
>
> - Daniel
Daniel Corbett - 29 Dec 2005 02:41 GMT
Yes, there is information there:
Event Type: Information
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1315
Date: 12/28/2005
Time: 8:25:16 AM
User: N/A
Computer: CPNETSERVER
Description:
Event code: 4006
Event message: Membership credential verification failed.
Event time: 12/28/2005 8:25:16 AM
Event time (UTC): 12/28/2005 1:25:16 PM
Event ID: 8eac5b0e60354111a2b07d6ba07c545e
Event sequence: 2
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: 30f9e9d4-3-127802498974531250
Trust level: Full
Application Virtual Path: /TireVanMgr
Application Path: C:\Documents and Settings\Daniel.CPNET\My
Documents\Visual Studio 2005\WebSites\TireVanMgr\
Machine name: CPNETSERVER
Process information:
Process ID: 2984
Process name: WebDev.WebServer.EXE
Account name: CPNET\Daniel
Request information:
Request URL:
http://localhost:2335/TireVanMgr/WebPages/Login.aspx?ReturnUrl=/TireVanMgr/Default.aspx
Request path: /TireVanMgr/WebPages/Login.aspx
User host address: 127.0.0.1
User:
Is authenticated: False
Authentication Type:
Thread account name: CPNET\Daniel
Name to authenticate: Daniel
Custom event details:
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
However, I can't see anything in here telling me why it failed? I entered
the correct password.
Thanks,
- Daniel
> hi,
>
[quoted text clipped - 24 lines]
> >
> > - Daniel
Dominick Baier [DevelopMentor] - 29 Dec 2005 07:04 GMT
Hi,
can you verifiy using SQL Profiler that the provider indeed contacts the
database?
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
> Yes, there is information there:
>
[quoted text clipped - 78 lines]
>>>
>>> - Daniel
[MSFT] - 29 Dec 2005 02:52 GMT
Hello Daniel,
Did you call GetUser(login1.UserName) after you got the login failing
error? If so, the user should be recognized and the error should be with
login control UI. Can you access other web pages in the same folder except
the login page?
Luke
Daniel Corbett - 29 Dec 2005 15:19 GMT
Yes, I did call GetUser(), and browsing the result in the debugger, I can see
everything...
I remembered that the database is automatically recreated if it's deleted,
so just to make sure everything was OK with the database, I decided to move
it somewhere else, so that .Net would automatically re-create it. This
worked, and after I re-added the users & roles, everything works now.
It seems there was something wrong with the database.
Thanks,
- Daniel
> Hello Daniel,
>
[quoted text clipped - 4 lines]
>
> Luke