CostumerContact is null, but not on localhost


Okay this does not make sense to me, hope someone here can help me.

If the url are site.domian

CustomerContext.Current.GetContactForUser(u); returns null

If the url are localhost, everything works just fine.

"u" is a MembershipUser - and it is not null in either case.

Can some one here, cast some lights on this - it does not make any sense to me :(


Jim Plougfelt

Jul 06, 2011 21:10

Oh and it is R2 we are running :)

Jul 06, 2011 21:11


I had this problem, it's probably because you are not logged in at the the site.domain.

If you login at localhost you can access the current user there, and the same with your domain name.


best regards




Aug 12, 2011 14:02
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.