Discussion:
Anonymous Profiles
(too old to reply)
ukeu
2006-06-06 16:19:45 UTC
Permalink
Hi,
I have the following problem when dealing with anonymous profiles-
Whenever I try to access the site's link from a remote computer, the
Commerce context set previously for an anonymous user doesnt get
reflected. The UserID(GUID) of the current context in this scenario
becomes null. However, the site runs fine when I run it from the local
machine. Any idea what is going wrong? Kindly assist.
David Hargis [MSFT]
2006-06-12 22:37:21 UTC
Permalink
Check your cookie settings on the remote machine. UserID is populated
based on the CS auth ticket, whish is typically stored as a cookie (but may
also be in the query string). If this cannot be retrieved, UserID will be
null.

- David

--------------------
From: "ukeu" <***@gmail.com>
Newsgroups: microsoft.public.commerceserver.userprofilemgt
Subject: Anonymous Profiles
Date: Tue, 06 Jun 2006 12:19:45 -0400
Organization: www.talkaboutsoftware.com
Message-ID:
<***@localhost.talkaboutsoftware.com>
X-Newsreader: www.talkaboutsoftware.com
X-Problems-To: info at talkaboutnetwork.com
X-Posted-By: USERID-83498
Content-Type: text/plain;
X-Complaints-To: ***@supernews.com
Lines: 8
Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTFEEDS01.phx.gbl!newsfeed00
.sul.t-online.de!t-online.de!newshub.sdsu.edu!sn-xt-sjc-02!sn-xt-sjc-11!sn-x
t-sjc-07!sn-post-02!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-
mail
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.commerceserver.userprofilemgt:3561
X-Tomcat-NG: microsoft.public.commerceserver.userprofilemgt

Hi,
I have the following problem when dealing with anonymous profiles-
Whenever I try to access the site's link from a remote computer, the
Commerce context set previously for an anonymous user doesnt get
reflected. The UserID(GUID) of the current context in this scenario
becomes null. However, the site runs fine when I run it from the local
machine. Any idea what is going wrong? Kindly assist.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
ukeu
2006-06-13 13:07:41 UTC
Permalink
Hi David: Thanks for your inputs. I actually have a very strange problem.
If I have the debugger running, the site loads fine from a remote system.
However, if I just access the link without any debugger, I get the GUID
object reference not set exception. Is there any settings I need to
change. Please assist
David Hargis [MSFT]
2006-06-13 22:17:44 UTC
Permalink
That is a strange one. I'm honestly not certain of everything that Visual
Studio does when it attaces to a web application, so I can't help too much
with that part.

Are you explicitly setting the auth ticket (SetAuthTicket API) when the
anonymous user visits the site? I suspect so, given the behavior you are
seeing. But another thing to try is clearing out the cookies on the client
machine. It's possible that an old auth ticket exists on that client that
was encrypted with a different key pair. However, once you set the auth
ticket, the old encrypted value should be overwritten. I would try tracing
the HTTP requests/responses being sent between the client and server. That
should give you more information about the nature of the problem.

Also, have you done a sanity-check on all of your IIS settings?

- David

--------------------
From: "ukeu" <***@gmail.com>
Newsgroups: microsoft.public.commerceserver.userprofilemgt
Subject: RE: Anonymous Profiles
Date: Tue, 13 Jun 2006 09:07:41 -0400
Organization: www.talkaboutsoftware.com
Message-ID:
<***@localhost.talkaboutsoftware.com>
X-Newsreader: www.talkaboutsoftware.com
X-Problems-To: info at talkaboutnetwork.com
X-Posted-By: USERID-83498
Content-Type: text/plain;
References:
<***@localhost.talkaboutsoftware.com>
<***@TK2MSFTNGXA01.phx.gbl>
X-Complaints-To: ***@supernews.com
Lines: 6
Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTFEEDS01.phx.gbl!newsfeed00
.sul.t-online.de!t-online.de!195.114.231.41.MISMATCH!feeder1!10.0.0.2.MISMAT
CH!feeder2!138.199.65.86.MISMATCH!sn-ams-06!sn-xt-ams-05!sn-post-ams-02!sn-p
ost-sjc-01!supernews.com!corp.supernews.com!not-for-mail
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.commerceserver.userprofilemgt:3570
X-Tomcat-NG: microsoft.public.commerceserver.userprofilemgt

Hi David: Thanks for your inputs. I actually have a very strange problem.
If I have the debugger running, the site loads fine from a remote system.
However, if I just access the link without any debugger, I get the GUID
object reference not set exception. Is there any settings I need to
change. Please assist
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
ukeu
2006-06-14 08:26:02 UTC
Permalink
HI David: Thanks very much once again. Yes Iam explicitly setting the auth
ticket for anonymous users.Is there any settings on IIS I need to
specifically do to crack this? This looks to be a strange problem to me
and Im afraid it might come during deployment into production also!
David Hargis [MSFT]
2006-06-23 17:50:24 UTC
Permalink
Probably, the best thing to do would be to run a tracing tool to see
exactly what traffic is being sent between the client and server.
Specifically, look for the cokies being sent between the two. TcpTrace and
Fiddler are two tools that work well. That trace should at least help you
identify whether the client or the server is the source of the problem.
You may wan to also try manually setting some cookies of your own, just to
see if they are being processed correctly.

- David

--------------------
From: "ukeu" <***@gmail.com>
Newsgroups: microsoft.public.commerceserver.userprofilemgt
Subject: RE: Anonymous Profiles
Date: Wed, 14 Jun 2006 04:26:02 -0400
Organization: www.talkaboutsoftware.com
Message-ID:
<***@localhost.talkaboutsoftware.com>
X-Newsreader: www.talkaboutsoftware.com
X-Problems-To: info at talkaboutnetwork.com
X-Posted-By: USERID-83498
Content-Type: text/plain;
References:
<***@localhost.talkaboutsoftware.com>
<***@TK2MSFTNGXA01.phx.gbl>
<***@localhost.talkaboutsoftware.com>
<***@TK2MSFTNGXA01.phx.gbl>
X-Complaints-To: ***@supernews.com
Lines: 5
Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTFEEDS01.phx.gbl!msrtrans!m
srn-in!newshub.sdsu.edu!postnews.google.com!news3.google.com!sn-xt-sjc-15!sn
-xt-sjc-08!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.commerceserver.userprofilemgt:3572
X-Tomcat-NG: microsoft.public.commerceserver.userprofilemgt

HI David: Thanks very much once again. Yes Iam explicitly setting the auth
ticket for anonymous users.Is there any settings on IIS I need to
specifically do to crack this? This looks to be a strange problem to me
and Im afraid it might come during deployment into production also!
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
Loading...