Re: .Net 2.0 Membership



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:

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=/TireVa
nMgr/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

"Dominick Baier [DevelopMentor]" wrote:

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?

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



.



Relevant Pages

  • Re: Web Server connecting to db server on different machines
    ... on the same machine as the database. ... Dominick Baier - DevelopMentor ... You could disable delegation and use a trusted subsystem design to ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Wait till intialization complete...
    ... until the event code has finished. ... have to start a separate macro using Application.OnTime. ... one reason being the time granularity which seemed to be somewhat to ... consult with the developers of the database application, ...
    (microsoft.public.word.vba.general)
  • Re: ASP .NET Configuration Tool
    ... Dominick Baier - DevelopMentor ... web.config before trying to run the configuration tool? ... LocalSqlServer - is this pointing to the right database? ...
    (microsoft.public.dotnet.security)
  • Re: Advantages of object-oriented programming
    ... I really wish that Dylan had succeeded. ... It's a beautiful language. ... an event manager should be treated more like a database ... but the framework for matching events to event code ...
    (comp.object)
  • Re: How to control label visability property with unbound text box?
    ... Then add the following to the AfterUpdate properties (the property - not the ... event code) for both txtAdded and txtTaken: ... > I'm trying to develope an Inventory Based database with ... > Inventory databases that have examples I might study? ...
    (microsoft.public.access.forms)