GetUser.ProviderUserKey gives me System.NullReferenceException
- From: "Cirene" <cirene@xxxxxxxxxxx>
- Date: Fri, 4 Jul 2008 21:47:45 -0400
Using asp.net membership. My login.aspx page goes to the loginredirect.aspx
page after the user logs in.
For some reason "Membership.GetUser.ProviderUserKey.ToString" gives me this
error:
System.NullReferenceException: Object reference not set to an instance of an
object. at loginredirect.Page_Load(Object sender, EventArgs e)
Any reason why? I should be logged in fine.
Is there another way in which I should get the current users UserId?
.
- Follow-Ups:
- Re: GetUser.ProviderUserKey gives me System.NullReferenceException
- From: Marc
- Re: GetUser.ProviderUserKey gives me System.NullReferenceException
- From: Eliyahu Goldin
- Re: GetUser.ProviderUserKey gives me System.NullReferenceException
- From: Tanzim Saqib
- Re: GetUser.ProviderUserKey gives me System.NullReferenceException
- Prev by Date: Re: FindControl problem
- Next by Date: Question about the asp.net 2.0 web configuration tool outside of development
- Previous by thread: FindControl problem
- Next by thread: Re: GetUser.ProviderUserKey gives me System.NullReferenceException
- Index(es):
Relevant Pages
|