09-23-04 02:48 AM
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: "examnotes" <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
[ Post a follow-up to this message ]
|