 |
|
 |
|
|
 |
OrderDiscount Component execution failed |
 |
 |
|
|
08-19-04 12:47 PM
Hi,
I'm developping my own site and i've got some troubles when running the
basket pipeline.
When i look to the log activating it in the web.config, the following error
occured :
ProgID: Commerce.OrderDiscount.1
Dictionary error: Value for key 'CacheName' in dictionary 'context' missing
(expected a variant of type 8)
I think i'm missing something in the configuration but i don't know what i'm
looking for.
Does anybody has a idea
Regards,
JF VALLET
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
RE: OrderDiscount Component execution failed |
 |
 |
|
|
08-19-04 10:53 PM
Hi, there,
OrderDiscount component (one of the key component in basket pipeline) reads
a CacheName value from Context directory. Based on that value,
OrderDiscount load/refresh the discount data from runtime cache. Details
can be found in Commerce Server doc, search for OrderDiscount.
Now, depending whether you are developing asp or asp.net site, the
configuration is different. If you are developing asp.net, you actually do
not have to set this value, Commerce Server BCL will set the correct
CacheName value for you when running basket pipeline. If it is asp site,
you have set this value explicitly, for example, the following code snippet
from Commerce retail site (in include\std_pipeline_lib.asp)
//////////////////////////////////////////////////////////////////////////
' Each specific pipeline may require additional contexts
Select Case sPipeName
Case MSCSPipelines.Product
Case MSCSPipelines.Basket
' Copy the discounts_clicked collection to each orderform
If IsObject(mscsOrderGrp.Value.discounts_clicked) Then
For Each sOrderFormName In mscsOrderGrp.Value(ORDERFORMS)
Set
mscsOrderGrp.Value(ORDERFORMS).Value(sOrderFormName).Value("discounts_clicke
d") = _
mscsOrderGrp.Value.discounts_clicked
Next
End If
dictContext.CatalogConnectionString =
dictConfig.s_CatalogConnectionString
Set mscsUserProfile = GetCurrentUserProfile()
If Not mscsUserProfile Is Nothing Then
Set dictContext.UserProfile = mscsUserProfile
End If
'You can also set dictContext.ContextProfile here if you wish to do
context targetting
Set dictContext.Evaluator = Application("MSCSExpressionEvaluator")
dictContext.CacheName = "Discounts"
////////////////////////////////////////////////////////////////////////////
////
HTH,
Andy Xu [MSFT]
Commerce Server Team
--
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.
--------------------
Thread-Topic: OrderDiscount Component execution failed
thread-index: AcSF3BfhNPZ0JKxSSwG7TTm89QN4lQ==
X-WBNR-Posting-Host: 213.11.64.80
From: examnotes <JF VALLET@discussions.microsoft.com>
Subject: OrderDiscount Component execution failed
Date: Thu, 19 Aug 2004 04:03:01 -0700
Lines: 21
Message-ID: <6F428415-6CEB-43ED-84BA-416AF9895D1B@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.general
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14570
X-Tomcat-NG: microsoft.public.commerceserver.general
Hi,
I'm developping my own site and i've got some troubles when running the
basket pipeline.
When i look to the log activating it in the web.config, the following error
occured :
ProgID: Commerce.OrderDiscount.1
Dictionary error: Value for key 'CacheName' in dictionary 'context' missing
(expected a variant of type 8)
I think i'm missing something in the configuration but i don't know what
i'm
looking for.
Does anybody has a idea
Regards,
JF VALLET
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
RE: OrderDiscount Component execution failed |
 |
 |
|
|
08-23-04 07:47 AM
Hi Andy,
First thanks for your response,
I'm developping an asp.net CS Site.
It is based on the MSIB pup with FP1.
Do you have an idea about what could make the BCL failed with the load of
CacheName ?
Regards,
JF VALLET
"Andy Xu[MSFT]" wrote:
> Hi, there,
>
> OrderDiscount component (one of the key component in basket pipeline) read
s
> a CacheName value from Context directory. Based on that value,
> OrderDiscount load/refresh the discount data from runtime cache. Details
> can be found in Commerce Server doc, search for OrderDiscount.
>
> Now, depending whether you are developing asp or asp.net site, the
> configuration is different. If you are developing asp.net, you actually do
> not have to set this value, Commerce Server BCL will set the correct
> CacheName value for you when running basket pipeline. If it is asp site,
> you have set this value explicitly, for example, the following code snippe
t
> from Commerce retail site (in include\std_pipeline_lib.asp)
>
> //////////////////////////////////////////////////////////////////////////
> ' Each specific pipeline may require additional contexts
> Select Case sPipeName
> Case MSCSPipelines.Product
>
> Case MSCSPipelines.Basket
> ' Copy the discounts_clicked collection to each orderform
> If IsObject(mscsOrderGrp.Value.discounts_clicked) Then
> For Each sOrderFormName In mscsOrderGrp.Value(ORDERFORMS)
> Set
> mscsOrderGrp.Value(ORDERFORMS).Value(sOrderFormName).Value("discounts_clic
ke
> d") = _
> mscsOrderGrp.Value.discounts_clicked
> Next
> End If
>
> dictContext.CatalogConnectionString =
> dictConfig.s_CatalogConnectionString
>
> Set mscsUserProfile = GetCurrentUserProfile()
> If Not mscsUserProfile Is Nothing Then
> Set dictContext.UserProfile = mscsUserProfile
> End If
>
> 'You can also set dictContext.ContextProfile here if you wish to do
> context targetting
> Set dictContext.Evaluator = Application("MSCSExpressionEvaluator")
> dictContext.CacheName = "Discounts"
> //////////////////////////////////////////////////////////////////////////
//
> ////
>
> HTH,
>
> Andy Xu [MSFT]
> Commerce Server Team
> --
> 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.
> --------------------
> Thread-Topic: OrderDiscount Component execution failed
> thread-index: AcSF3BfhNPZ0JKxSSwG7TTm89QN4lQ==
> X-WBNR-Posting-Host: 213.11.64.80
> From: examnotes <JF VALLET@discussions.microsoft.com>
> Subject: OrderDiscount Component execution failed
> Date: Thu, 19 Aug 2004 04:03:01 -0700
> Lines: 21
> Message-ID: <6F428415-6CEB-43ED-84BA-416AF9895D1B@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.general
> NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14570
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> Hi,
>
> I'm developping my own site and i've got some troubles when running the
> basket pipeline.
>
> When i look to the log activating it in the web.config, the following erro
r
> occured :
>
> ProgID: Commerce.OrderDiscount.1
> Dictionary error: Value for key 'CacheName' in dictionary 'context' missin
g
> (expected a variant of type 8)
>
> I think i'm missing something in the configuration but i don't know what
> i'm
> looking for.
>
> Does anybody has a idea
>
> Regards,
>
> JF VALLET
>
>
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
RE: OrderDiscount Component execution failed |
 |
 |
|
|
08-25-04 03:03 AM
Since you develop on FP1, and we do have a new marketing resource for
discounts in FP1, I wonder whether the configuration of discount cache is
correct.
Can you check your web.config, in the <caches> section, is there a cache
entry named "Discounts"? and if yes, how does it configure?
Thanks,
Andy Xu [MSFT]
Commerce Server Team
--
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.
--------------------
Thread-Topic: OrderDiscount Component execution failed
thread-index: AcSI7KQ33A7wgD6NSD+lZM+2ifTmew==
X-WBNR-Posting-Host: 213.11.64.80
From: examnotes <JF VALLET@discussions.microsoft.com>
References: <6F428415-6CEB-43ED-84BA-416AF9895D1B@microsoft.com>
<kVVZmZkhEHA.304@cpmsftngxa10.phx.gbl>
Subject: RE: OrderDiscount Component execution failed
Date: Mon, 23 Aug 2004 01:39:02 -0700
Lines: 122
Message-ID: <8CF4B18B-24E0-4D55-896E-555270ED891D@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.general
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14601
X-Tomcat-NG: microsoft.public.commerceserver.general
Hi Andy,
First thanks for your response,
I'm developping an asp.net CS Site.
It is based on the MSIB pup with FP1.
Do you have an idea about what could make the BCL failed with the load of
CacheName ?
Regards,
JF VALLET
"Andy Xu[MSFT]" wrote:
> Hi, there,
>
> OrderDiscount component (one of the key component in basket pipeline)
reads
> a CacheName value from Context directory. Based on that value,
> OrderDiscount load/refresh the discount data from runtime cache. Details
> can be found in Commerce Server doc, search for OrderDiscount.
>
> Now, depending whether you are developing asp or asp.net site, the
> configuration is different. If you are developing asp.net, you actually
do
> not have to set this value, Commerce Server BCL will set the correct
> CacheName value for you when running basket pipeline. If it is asp site,
> you have set this value explicitly, for example, the following code
snippet
> from Commerce retail site (in include\std_pipeline_lib.asp)
>
> //////////////////////////////////////////////////////////////////////////
> ' Each specific pipeline may require additional contexts
> Select Case sPipeName
> Case MSCSPipelines.Product
>
> Case MSCSPipelines.Basket
> ' Copy the discounts_clicked collection to each orderform
> If IsObject(mscsOrderGrp.Value.discounts_clicked) Then
> For Each sOrderFormName In mscsOrderGrp.Value(ORDERFORMS)
> Set
>
mscsOrderGrp.Value(ORDERFORMS).Value(sOrderFormName).Value("discounts_clicke
> d") = _
> mscsOrderGrp.Value.discounts_clicked
> Next
> End If
>
> dictContext.CatalogConnectionString =
> dictConfig.s_CatalogConnectionString
>
> Set mscsUserProfile = GetCurrentUserProfile()
> If Not mscsUserProfile Is Nothing Then
> Set dictContext.UserProfile = mscsUserProfile
> End If
>
> 'You can also set dictContext.ContextProfile here if you wish to do
> context targetting
> Set dictContext.Evaluator = Application("MSCSExpressionEvaluator")
> dictContext.CacheName = "Discounts"
>
////////////////////////////////////////////////////////////////////////////
> ////
>
> HTH,
>
> Andy Xu [MSFT]
> Commerce Server Team
> --
> 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.
> --------------------
> Thread-Topic: OrderDiscount Component execution failed
> thread-index: AcSF3BfhNPZ0JKxSSwG7TTm89QN4lQ==
> X-WBNR-Posting-Host: 213.11.64.80
> From: examnotes <JF VALLET@discussions.microsoft.com>
> Subject: OrderDiscount Component execution failed
> Date: Thu, 19 Aug 2004 04:03:01 -0700
> Lines: 21
> Message-ID: <6F428415-6CEB-43ED-84BA-416AF9895D1B@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.general
> NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14570
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> Hi,
>
> I'm developping my own site and i've got some troubles when running the
> basket pipeline.
>
> When i look to the log activating it in the web.config, the following
error
> occured :
>
> ProgID: Commerce.OrderDiscount.1
> Dictionary error: Value for key 'CacheName' in dictionary 'context'
missing
> (expected a variant of type 8)
>
> I think i'm missing something in the configuration but i don't know what
> i'm
> looking for.
>
> Does anybody has a idea
>
> Regards,
>
> JF VALLET
>
>
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
RE: OrderDiscount Component execution failed |
 |
 |
|
|
08-25-04 09:19 AM
Hi Andy,
My configuration uses for the moment the old discount system because for the
moment i use only the catalog feature of the FP1.
I've tried with the retail Site and you can switch from the discount to the
marketing system without problem.
Therefore, i have switch my Site from discounts to MarketingDiscounts as in
the following :
<cache name="Discounts" type="MarketingDiscounts" refreshInterval="0"
retryInterval="60" />
I have still got the same error at the pipeline execution.
I wonder now if the pipeline execution works with the MSIB sample site
because the cart page is not available on this sample site.
Thanks
JF VALLET
"Andy Xu[MSFT]" wrote:
> Since you develop on FP1, and we do have a new marketing resource for
> discounts in FP1, I wonder whether the configuration of discount cache is
> correct.
>
> Can you check your web.config, in the <caches> section, is there a cache
> entry named "Discounts"? and if yes, how does it configure?
>
> Thanks,
> Andy Xu [MSFT]
> Commerce Server Team
> --
> 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.
> --------------------
> Thread-Topic: OrderDiscount Component execution failed
> thread-index: AcSI7KQ33A7wgD6NSD+lZM+2ifTmew==
> X-WBNR-Posting-Host: 213.11.64.80
> From: examnotes <JF VALLET@discussions.microsoft.com>
> References: <6F428415-6CEB-43ED-84BA-416AF9895D1B@microsoft.com>
> <kVVZmZkhEHA.304@cpmsftngxa10.phx.gbl>
> Subject: RE: OrderDiscount Component execution failed
> Date: Mon, 23 Aug 2004 01:39:02 -0700
> Lines: 122
> Message-ID: <8CF4B18B-24E0-4D55-896E-555270ED891D@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.general
> NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14601
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> Hi Andy,
>
> First thanks for your response,
>
> I'm developping an asp.net CS Site.
> It is based on the MSIB pup with FP1.
>
> Do you have an idea about what could make the BCL failed with the load of
> CacheName ?
>
> Regards,
>
> JF VALLET
>
>
>
> "Andy Xu[MSFT]" wrote:
>
> reads
> do
> snippet
> mscsOrderGrp.Value(ORDERFORMS).Value(sOrderFormName).Value("discounts_clic
ke
> //////////////////////////////////////////////////////////////////////////
//
> rights.
> error
> missing
>
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
RE: OrderDiscount Component execution failed |
 |
 |
|
|
08-27-04 11:07 PM
Hi, JF
After reviewing the Commerce Server BCL code, i think the problem is
probably due to the site code doesn't call the correct basket pipeline.
Can you find out your site code snippet where it executes the pipeline.
Usually the code looks like:
PipelineInfo pipelineInfo = new PipelineInfo("basket"); // pass the name
of pipeline (can be non-constant value) to create PipelineInfo instance
cart.RunPipeline(pipelineInfo); // assume cart is an instance of
OrderGroup, this will execute pipeline.
Now, when you call the PipelineInfo's constructor, BCL will configure the
Context dictionary to pass to pipeline. Only when BCL identifies the
pipeline you try to run is basket pipeline, it will configure the CacheName
entry. So in your case, it seems BCL code doesn't think you try to run a
basket pipeline but actually you do.
before FP1, there is only one constructor for PipelineInfo class, which
only takes one parameter -- pipeline name. So there is an implication that
you have to pass the name "basket" for basket pipeline. This is
inconvenient, to say at the least, if you have a different name of your
basket pipeline.
In FP1, we provide another constructor PipelineInfo(String,
OrderPipelineType), so as long as you give correct type, you can use your
own pipeline name foo,
PipelineInfo pipelineInfo = new PipelineInfo("foo",
OrderPipelineType.Basket);
This new constructor can be found in Feature pack 1 documentation.
HTH,
Andy Xu [MSFT]
Commerce Server Team
--
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.
--------------------
Thread-Topic: OrderDiscount Component execution failed
thread-index: AcSKfDKFPNfxoQitQcadJEh8qj6B+A==
X-WBNR-Posting-Host: 83.154.114.127
From: examnotes <JF VALLET@discussions.microsoft.com>
References: <6F428415-6CEB-43ED-84BA-416AF9895D1B@microsoft.com>
<kVVZmZkhEHA.304@cpmsftngxa10.phx.gbl>
<8CF4B18B-24E0-4D55-896E-555270ED891D@microsoft.com>
<qXnCnHkiEHA.2816@cpmsftngxa10.phx.gbl>
Subject: RE: OrderDiscount Component execution failed
Date: Wed, 25 Aug 2004 01:19:10 -0700
Lines: 200
Message-ID: <C4289A72-2C13-4704-A931-C301E9E4DB31@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.general
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14623
X-Tomcat-NG: microsoft.public.commerceserver.general
Hi Andy,
My configuration uses for the moment the old discount system because for
the
moment i use only the catalog feature of the FP1.
I've tried with the retail Site and you can switch from the discount to the
marketing system without problem.
Therefore, i have switch my Site from discounts to MarketingDiscounts as in
the following :
<cache name="Discounts" type="MarketingDiscounts" refreshInterval="0"
retryInterval="60" />
I have still got the same error at the pipeline execution.
I wonder now if the pipeline execution works with the MSIB sample site
because the cart page is not available on this sample site.
Thanks
JF VALLET
"Andy Xu[MSFT]" wrote:
> Since you develop on FP1, and we do have a new marketing resource for
> discounts in FP1, I wonder whether the configuration of discount cache is
> correct.
>
> Can you check your web.config, in the <caches> section, is there a cache
> entry named "Discounts"? and if yes, how does it configure?
>
> Thanks,
> Andy Xu [MSFT]
> Commerce Server Team
> --
> 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.
> --------------------
> Thread-Topic: OrderDiscount Component execution failed
> thread-index: AcSI7KQ33A7wgD6NSD+lZM+2ifTmew==
> X-WBNR-Posting-Host: 213.11.64.80
> From: examnotes <JF VALLET@discussions.microsoft.com>
> References: <6F428415-6CEB-43ED-84BA-416AF9895D1B@microsoft.com>
> <kVVZmZkhEHA.304@cpmsftngxa10.phx.gbl>
> Subject: RE: OrderDiscount Component execution failed
> Date: Mon, 23 Aug 2004 01:39:02 -0700
> Lines: 122
> Message-ID: <8CF4B18B-24E0-4D55-896E-555270ED891D@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.general
> NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14601
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> Hi Andy,
>
> First thanks for your response,
>
> I'm developping an asp.net CS Site.
> It is based on the MSIB pup with FP1.
>
> Do you have an idea about what could make the BCL failed with the load of
> CacheName ?
>
> Regards,
>
> JF VALLET
>
>
>
> "Andy Xu[MSFT]" wrote:
>
> reads
Details[vbcol=seagreen]
> do
site,[vbcol=seagreen]
> snippet
//////////////////////////////////////////////////////////////////////////[vbcol=seagreen]
>
mscsOrderGrp.Value(ORDERFORMS).Value(sOrderFormName).Value("discounts_clicke
>
////////////////////////////////////////////////////////////////////////////
> rights.
> error
> missing
what[vbcol=seagreen]
>
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
RE: OrderDiscount Component execution failed |
 |
 |
|
|
08-30-04 10:55 PM
Hi Andy,
Thanks for your response,
That's exactly the problem.
I've founded it on friday evening by trying to understand the difference
between the retail site and my site and the only difference was in the namin
g
of the basket.
And i was effectively surprised that when renaming my basket pipeline to
basket the orderDiscount component then worked correctly.
Thanks a lot for your help,
Bests regards,
JF VALLET
"Andy Xu[MSFT]" wrote:
> Hi, JF
>
> After reviewing the Commerce Server BCL code, i think the problem is
> probably due to the site code doesn't call the correct basket pipeline.
>
> Can you find out your site code snippet where it executes the pipeline.
> Usually the code looks like:
>
> PipelineInfo pipelineInfo = new PipelineInfo("basket"); // pass the name
> of pipeline (can be non-constant value) to create PipelineInfo instance
> cart.RunPipeline(pipelineInfo); // assume cart is an instance of
> OrderGroup, this will execute pipeline.
>
> Now, when you call the PipelineInfo's constructor, BCL will configure the
> Context dictionary to pass to pipeline. Only when BCL identifies the
> pipeline you try to run is basket pipeline, it will configure the CacheNam
e
> entry. So in your case, it seems BCL code doesn't think you try to run a
> basket pipeline but actually you do.
>
> before FP1, there is only one constructor for PipelineInfo class, which
> only takes one parameter -- pipeline name. So there is an implication that
> you have to pass the name "basket" for basket pipeline. This is
> inconvenient, to say at the least, if you have a different name of your
> basket pipeline.
>
> In FP1, we provide another constructor PipelineInfo(String,
> OrderPipelineType), so as long as you give correct type, you can use your
> own pipeline name foo,
>
> PipelineInfo pipelineInfo = new PipelineInfo("foo",
> OrderPipelineType.Basket);
>
> This new constructor can be found in Feature pack 1 documentation.
>
> HTH,
> Andy Xu [MSFT]
> Commerce Server Team
> --
> 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.
> --------------------
> Thread-Topic: OrderDiscount Component execution failed
> thread-index: AcSKfDKFPNfxoQitQcadJEh8qj6B+A==
> X-WBNR-Posting-Host: 83.154.114.127
> From: examnotes <JF VALLET@discussions.microsoft.com>
> References: <6F428415-6CEB-43ED-84BA-416AF9895D1B@microsoft.com>
> <kVVZmZkhEHA.304@cpmsftngxa10.phx.gbl>
> <8CF4B18B-24E0-4D55-896E-555270ED891D@microsoft.com>
> <qXnCnHkiEHA.2816@cpmsftngxa10.phx.gbl>
> Subject: RE: OrderDiscount Component execution failed
> Date: Wed, 25 Aug 2004 01:19:10 -0700
> Lines: 200
> Message-ID: <C4289A72-2C13-4704-A931-C301E9E4DB31@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.general
> NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
> Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14623
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> Hi Andy,
>
> My configuration uses for the moment the old discount system because for
> the
> moment i use only the catalog feature of the FP1.
>
> I've tried with the retail Site and you can switch from the discount to th
e
> marketing system without problem.
>
> Therefore, i have switch my Site from discounts to MarketingDiscounts as i
n
> the following :
> <cache name="Discounts" type="MarketingDiscounts" refreshInterval="0"
> retryInterval="60" />
>
> I have still got the same error at the pipeline execution.
> I wonder now if the pipeline execution works with the MSIB sample site
> because the cart page is not available on this sample site.
>
> Thanks
>
> JF VALLET
>
>
>
> "Andy Xu[MSFT]" wrote:
>
> rights.
> Details
> site,
> //////////////////////////////////////////////////////////////////////////
> mscsOrderGrp.Value(ORDERFORMS).Value(sOrderFormName).Value("discounts_clic
ke
> //////////////////////////////////////////////////////////////////////////
//
> what
>
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
|
Sponsored Links |
 |
 |
|
|
 |
All times are GMT. The time now is 05:09 AM. |
 |
|
|
 |
|
 |
|
|
 |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
|
|
|
|
Medical and Health forum | Computer Games Reviews | Graphics design forum
|
 |
|
 |
|