.Net 2.0 Membership

D

Daniel Corbett

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
 
D

Dominick Baier [DevelopMentor]

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.
 
D

Daniel Corbett

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
 
M

[MSFT]

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
 
D

Dominick Baier [DevelopMentor]

Hi,

can you verifiy using SQL Profiler that the provider indeed contacts the
database?
 
D

Daniel Corbett

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,142
Latest member
arinsharma
Top