Commerce Server General - Extend Profiles - UserObject

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > September 2006 > Extend Profiles - UserObject





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 Extend Profiles - UserObject
Laura T

2006-09-05, 1:29 pm

HI,

I tried to add new properties in the standard UserObject profile from
Commerce Server Manager in this way:

1. Created new members in the User Object dataobject.
2. Added the new properties in the User Object profile.
3. Mapped the properties to dataobject properties.
4. Created the new fields in the UserObject table (same names as the data
members).
5. Restart everything.

I must have missed something since the site now fails to start with an
exception from Profiles service.
When I deleted all the things I did, it started to work.

What did I miss? The documentation does not state anything about it (nor
does Google).

TIA

LT


Jeff Lynch

2006-09-05, 1:29 pm

Laura,

1. Create new fields in the UserObject table.
2. Create new "Data Members" in the appropriate "Data Objects".
3. Create new "Properties" in the Profile Definition, mapping to the
appropriate "Data Member".
4. Run "iisreset" to clear the profile cache.
5. Enter profile data using the Customer and Orders Manager application.

--
Jeff Lynch
MVP Windows Server System - Commerce Server
http://codebetter.com/blogs/jeff.lynch


"Laura T" <laura.t@_yahoo.com> wrote in message
news:eDFKPEO0GHA.4228@TK2MSFTNGP06.phx.gbl...
> HI,
>
> I tried to add new properties in the standard UserObject profile from
> Commerce Server Manager in this way:
>
> 1. Created new members in the User Object dataobject.
> 2. Added the new properties in the User Object profile.
> 3. Mapped the properties to dataobject properties.
> 4. Created the new fields in the UserObject table (same names as the data
> members).
> 5. Restart everything.
>
> I must have missed something since the site now fails to start with an
> exception from Profiles service.
> When I deleted all the things I did, it started to work.
>
> What did I miss? The documentation does not state anything about it (nor
> does Google).
>
> TIA
>
> LT
>
>



Laura T

2006-09-05, 1:29 pm

Hi Jeff,

thanks for your help!

The trouble is that the site does not yet have any user registered so the
Customer and Orders Manager
does not show up anything.
And as I cannot get inside the site because of the exception I cannot even
register anyone.
This is CS2007 I'm talking about.

Any other ideas?

TIA

LT
"Jeff Lynch" <jeff.lynch@newsgroup.nospam> ha scritto nel messaggio
news:ePLMbcO0GHA.4228@TK2MSFTNGP06.phx.gbl...
> Laura,
>
> 1. Create new fields in the UserObject table.
> 2. Create new "Data Members" in the appropriate "Data Objects".
> 3. Create new "Properties" in the Profile Definition, mapping to the
> appropriate "Data Member".
> 4. Run "iisreset" to clear the profile cache.
> 5. Enter profile data using the Customer and Orders Manager application.
>
> --
> Jeff Lynch
> MVP Windows Server System - Commerce Server
> http://codebetter.com/blogs/jeff.lynch
>
>
> "Laura T" <laura.t@_yahoo.com> wrote in message
> news:eDFKPEO0GHA.4228@TK2MSFTNGP06.phx.gbl...
>
>



Jeff Lynch

2006-09-05, 1:29 pm

You can use the Customer and Orders Manager to add a new UserObject for
testing. Then log into the site as this test user.

--
Jeff Lynch
MVP Windows Server System - Commerce Server
http://codebetter.com/blogs/jeff.lynch


"Laura T" <laura.t@_yahoo.com> wrote in message
news:%23uoZQVQ0GHA.5072@TK2MSFTNGP03.phx.gbl...
> Hi Jeff,
>
> thanks for your help!
>
> The trouble is that the site does not yet have any user registered so the
> Customer and Orders Manager
> does not show up anything.
> And as I cannot get inside the site because of the exception I cannot even
> register anyone.
> This is CS2007 I'm talking about.
>
> Any other ideas?
>
> TIA



Laura T

2006-09-06, 7:37 pm

But the problem is that I can't get even on the home page.
The exception occurs when I type the test site url in the browser.
No page, just an exception regarding the profile constructor.

Should I delete my new properties, login and register and then re-add the
properties?
Should this work?

TIA

LT

"Jeff Lynch" <jeff.lynch@newsgroup.nospam> ha scritto nel messaggio
news:%23HRTqsQ0GHA.2516@TK2MSFTNGP06.phx.gbl...
> You can use the Customer and Orders Manager to add a new UserObject for
> testing. Then log into the site as this test user.
>
> --
> Jeff Lynch
> MVP Windows Server System - Commerce Server
> http://codebetter.com/blogs/jeff.lynch
>
>
> "Laura T" <laura.t@_yahoo.com> wrote in message
> news:%23uoZQVQ0GHA.5072@TK2MSFTNGP03.phx.gbl...
>
>



Jeff Lynch

2006-09-06, 7:37 pm

Laura,

A few questions:

1) Can you open the Customer and Orders Mananger application and add a new
user profile? This application uses the CS2007 web services to access the
Profiles and is independent of the web site code.

2) What was the source for your site code? Did you use the new StarterSite
or your own site code?

--
Jeff Lynch
MVP Windows Server System - Commerce Server
http://codebetter.com/blogs/jeff.lynch


"Laura T" <laura.t@_yahoo.com> wrote in message
news:%23yOvlXY0GHA.4956@TK2MSFTNGP04.phx.gbl...
> But the problem is that I can't get even on the home page.
> The exception occurs when I type the test site url in the browser.
> No page, just an exception regarding the profile constructor.
>
> Should I delete my new properties, login and register and then re-add the
> properties?
> Should this work?
>
> TIA
>



David Hargis [MSFT]

2006-09-06, 7:37 pm

What error are you getting from the profiles service?

If you are using the StarterSite, the site code expects that specific
properties will exist on the UserObject profile. If those properties have
been changed or removed, you will need to modify the classes under the
app_code/profiles directory to work with your modified profile.

I'd recommend using the Customer and Orders Manager to verify your profile
(as Laura suggested). A common problem to look for when modifying the
profile definitions is that the DB column is too small to hold a specific
type of data. This is expecially common when the properties are encrypted
becuse the encrypted is several times larger than the unencrypted data.

- David

--------------------
From: "Jeff Lynch" <jeff.lynch@newsgroup.nospam>
References: <eDFKPEO0GHA.4228@TK2MSFTNGP06.phx.gbl>
<ePLMbcO0GHA.4228@TK2MSFTNGP06.phx.gbl>
<#uoZQVQ0GHA.5072@TK2MSFTNGP03.phx.gbl>
<#HRTqsQ0GHA.2516@TK2MSFTNGP06.phx.gbl>
<#yOvlXY0GHA.4956@TK2MSFTNGP04.phx.gbl>
Subject: Re: Extend Profiles - UserObject
Date: Wed, 6 Sep 2006 08:32:39 -0500
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Response
Message-ID: <#Z51sjb0GHA.4648@TK2MSFTNGP04.phx.gbl>
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: gateway.gulfcoastseal.com 65.212.192.66
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP04.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.commerceserver.general:18328
X-Tomcat-NG: microsoft.public.commerceserver.general

Laura,

A few questions:

1) Can you open the Customer and Orders Mananger application and add a new
user profile? This application uses the CS2007 web services to access the
Profiles and is independent of the web site code.

2) What was the source for your site code? Did you use the new StarterSite
or your own site code?

--
Jeff Lynch
MVP Windows Server System - Commerce Server
http://codebetter.com/blogs/jeff.lynch


"Laura T" <laura.t@_yahoo.com> wrote in message
news:%23yOvlXY0GHA.4956@TK2MSFTNGP04.phx.gbl...
> But the problem is that I can't get even on the home page.
> The exception occurs when I type the test site url in the browser.
> No page, just an exception regarding the profile constructor.
>
> Should I delete my new properties, login and register and then re-add the
> properties?
> Should this work?
>
> TIA
>






--

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.
Laura T

2006-09-07, 7:33 pm

Hi Jeff,

I did manage to open Customers and Orders Manager and saw all the new
properies I added,
but still the web site did not work.
What I did now is that I deleted all the new properties and datamembers, and
the site started to work again.
I left the new fields in the UserObject table.

I restarted the whole machine, re-added the properties but now without a new
group, in the General Properties.
IISReset and now everything works. I'm happy for now, but if I have time
I'll look into the thing to understand if the new group did something bad.
For now it's working.

Thanks!

LT

"Jeff Lynch" <jeff.lynch@newsgroup.nospam> ha scritto nel messaggio
news:%23Z51sjb0GHA.4648@TK2MSFTNGP04.phx.gbl...
> Laura,
>
> A few questions:
>
> 1) Can you open the Customer and Orders Mananger application and add a new
> user profile? This application uses the CS2007 web services to access the
> Profiles and is independent of the web site code.
>
> 2) What was the source for your site code? Did you use the new StarterSite
> or your own site code?
>
> --
> Jeff Lynch
> MVP Windows Server System - Commerce Server
> http://codebetter.com/blogs/jeff.lynch
>
>
> "Laura T" <laura.t@_yahoo.com> wrote in message
> news:%23yOvlXY0GHA.4956@TK2MSFTNGP04.phx.gbl...
>
>



Laura T

2006-09-07, 7:33 pm

Hi David,

the site was an existing one. I just added the CS functionality from the
VS2005.
I must have done something wrong, maybe some mismatch between the max length
in the CS property and the actual field lenght in SQL.
I guess it could have made CS angry. I deleted all the properties and
datamembers and readded all w/o changing the maxlength property
and now it works. The other two things that I did differently was that the
datamember fields were already in the SQL table so I just selected them and
that I did not create a new property group for them. Maybe one of those
things could be the culprit.. dont'know. I have to play with it a bit more.
For now it works.

Thanks!

LT

"David Hargis [MSFT]" <davidhargis@online.microsoft.com> ha scritto nel
messaggio news:nhVtkre0GHA.396@TK2MSFTNGXA01.phx.gbl...
> What error are you getting from the profiles service?
>
> If you are using the StarterSite, the site code expects that specific
> properties will exist on the UserObject profile. If those properties have
> been changed or removed, you will need to modify the classes under the
> app_code/profiles directory to work with your modified profile.
>
> I'd recommend using the Customer and Orders Manager to verify your profile
> (as Laura suggested). A common problem to look for when modifying the
> profile definitions is that the DB column is too small to hold a specific
> type of data. This is expecially common when the properties are encrypted
> becuse the encrypted is several times larger than the unencrypted data.
>
> - David
>
> --------------------
> From: "Jeff Lynch" <jeff.lynch@newsgroup.nospam>
> References: <eDFKPEO0GHA.4228@TK2MSFTNGP06.phx.gbl>
> <ePLMbcO0GHA.4228@TK2MSFTNGP06.phx.gbl>
> <#uoZQVQ0GHA.5072@TK2MSFTNGP03.phx.gbl>
> <#HRTqsQ0GHA.2516@TK2MSFTNGP06.phx.gbl>
> <#yOvlXY0GHA.4956@TK2MSFTNGP04.phx.gbl>
> Subject: Re: Extend Profiles - UserObject
> Date: Wed, 6 Sep 2006 08:32:39 -0500
> Lines: 31
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
> X-RFC2646: Format=Flowed; Response
> Message-ID: <#Z51sjb0GHA.4648@TK2MSFTNGP04.phx.gbl>
> Newsgroups: microsoft.public.commerceserver.general
> NNTP-Posting-Host: gateway.gulfcoastseal.com 65.212.192.66
> Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP04.phx.gbl
> Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.commerceserver.general:18328
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> Laura,
>
> A few questions:
>
> 1) Can you open the Customer and Orders Mananger application and add a new
> user profile? This application uses the CS2007 web services to access the
> Profiles and is independent of the web site code.
>
> 2) What was the source for your site code? Did you use the new StarterSite
> or your own site code?
>
> --
> Jeff Lynch
> MVP Windows Server System - Commerce Server
> http://codebetter.com/blogs/jeff.lynch
>
>
> "Laura T" <laura.t@_yahoo.com> wrote in message
> news:%23yOvlXY0GHA.4956@TK2MSFTNGP04.phx.gbl...
>
>
>
>
>
> --
>
> 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.



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com