Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Membership.GetUser() returns null

Reply
Thread Tools

Membership.GetUser() returns null

 
 
TangyZizzle
Guest
Posts: n/a
 
      01-05-2006
Membership.GetUser() returns null for anonymous users after migrating from
Beta 2 to ASP.NET 2.0. Does anyone have an idea why this happens??

order.UserID = Membership.GetUser().ProviderUserKey;
throws a NullReferenceException

I have set anonymousIdentification enabled/true.

Would greatly appreciate any hints as I've spent days and days to solve this
problem.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorted Returns List and Reversed Returns Iterator ++imanshu Python 7 08-23-2008 04:25 AM
createImage sometime returns null and sometime returns non-null. vizlab Java 3 10-17-2007 11:21 AM
Begin() applied on empty Vector returns NULL or non null value???? Col C++ 1 04-21-2006 01:12 PM
"stringObj == null" vs "stringObj.equals(null)", for null check?? qazmlp1209@rediffmail.com Java 5 03-29-2006 10:37 PM
block returns and hash element returns Trans Ruby 2 11-06-2005 12:15 PM



Advertisments