User Profile Management - Null current.UserProfile object

This is Interesting: Free IT Magazines  
Home > Archive > User Profile Management > September 2004 > Null current.UserProfile object





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Null current.UserProfile object
DanielT

2004-09-08, 8:47 pm

Hello, I am using CS2002 with SP3 and FP1 on Win2003 Server. I recently
added encryption keys to my web.config file, but all of a sudden, anonymous
user profiles can no longer be loaded. CommerceContext.Current.UserID is
initialized correctly, but CommerceContext.Current.UserProfile is null. If I
try to load the Profile explicity using the UserID, I get null as well. But
if I try to create a new UserObject profile using UserID, it says it already
exists. This only came up after I added the keys; it's been working fine for
weeks. I need to use the Anonymous UserProfile for the Targeting Framework
(i.e. discounts).

Any suggestions would be much appreciated...

Thanks,
--DanielT
David Hargis [MSFT]

2004-09-22, 9:48 pm

Hi Daniel,

This could be happening if a null property is trying to be decrypted. The
recommended practice is to create a new property that is encrypted, and
copy the existing property into the new encrypted property. Problems can
arise if you enable encryption on an existing property.

Hope this helps,
David

--------------------
Thread-Topic: Null current.UserProfile object
thread-index: AcSWFI/lhj8sENJhQ2Wl8H+AW6/ldg==
X-WBNR-Posting-Host: 162.84.196.175
From: "=?Utf-8?B?RGFuaWVsVA==?=" <DanielT@discussions.microsoft.com>
Subject: Null current.UserProfile object
Date: Wed, 8 Sep 2004 19:27:33 -0700
Lines: 14
Message-ID: <3556C389-2684-475C-B9CB-E6ACC10CB577@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.commerceserver.userprofilemgt
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.commerceserver.userprofilemgt:3129
X-Tomcat-NG: microsoft.public.commerceserver.userprofilemgt

Hello, I am using CS2002 with SP3 and FP1 on Win2003 Server. I recently
added encryption keys to my web.config file, but all of a sudden, anonymous
user profiles can no longer be loaded. CommerceContext.Current.UserID is
initialized correctly, but CommerceContext.Current.UserProfile is null. If
I
try to load the Profile explicity using the UserID, I get null as well.
But
if I try to create a new UserObject profile using UserID, it says it
already
exists. This only came up after I added the keys; it's been working fine
for
weeks. I need to use the Anonymous UserProfile for the Targeting Framework
(i.e. discounts).

Any suggestions would be much appreciated...

Thanks,
--DanielT


This posting is provided "AS IS" with no warranties, and confers no
rights.

EBusiness Server Team
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com