p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

aspdotnet_website_programming thread: logging in always throws exception


Message #1 by gordonix@y... on Mon, 24 Mar 2003 18:40:06
I have been coding by the book and things have been working fine until 
the User module.  I don't understand how the app starts for the first 
time, obviously with no users yet.

Please check me when I'm wrong:

The PhilePageBase.PhilePage_Load method (which all pages inherit from and 
is executed first before the inherited page's load method) authenticates 
the cookie and checks if it is a PhilePrincipal object by running the 
stored procedure  sp_Accounts_GetUserDetailsByEmail from the 
Accounts.Data module.  This then always throws an exception since there 
will never be a record found until one is added, and no record can be 
added until you can get to the "New.aspx" page.

There has to be a logic error here, but I'm following the code from the 
download exactly, and am missing it.  Any help would be appreciated.

  Return to Index