Commerce Server General - Pipeline Execution Error Still Exists ????

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > May 2004 > Pipeline Execution Error Still Exists ????





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 Pipeline Execution Error Still Exists ????
Ugur KARATAS

2004-05-11, 8:20 pm

Hi All,

Server Platform : Commerce Server 2002 + SP2
Development Platform : Visual Studio 2003 + CS2002 tools
Pages are developing in ASP.NET

[Code Snip]
Dim info As PipelineInfo = New PipelineInfo("basket")
info("CacheName") = "discounts"
info.Profiles.Add("User", userProfile)
myBasket.RunPipeline(info) 'Works succesfully

info = New PipelineInfo("Total")
myBasket.RunPipeline(info) 'Generates Below Error
[End of Code Snip]


[Message Manager Definition]
<messageManager>
<cultures default="tr-TR" baseName="SiteName.MessageManager"
assembly="SiteName">
<culture id="en-US"/>
</cultures>
</messageManager>
[End of Message Manager Definition]

[Error]
Component Execution failed for component[0x2] hr: 0x80004005 ProgID:
Commerce.ShippingMethodRouter.1 Dictionary error: Value for key
'MessageManager' in dictionary 'context' is of the wrong type (expected a
variant of type 9, got 0) (orderform=default)
[End of Error]


I cant figure out the problem?
How can I fix it ?


Michael O'Donovan [MSFT]

2004-05-12, 6:47 am

Hi,

This is actually my standard response, so hopefully it helps. It sounds like
you don't have a message manager object that is needed by the pipeline. The
message manager object will hold error and warning messages that will be
used by the pipeline components.

To ensure you have a message manager object, do the following (this is from
the retail 2002 sample site, you may need to change assembly and namespace
names based on your site):

1. You need to add entries to your web.config. These entries are standard
keywords that are used by the pipeline to display error messages.
2. You need to add a .resx file with the entries from the web.config and
their appropriate display text.

E.g in web config.

<messageManager>
<cultures default="en-US"
baseName="Microsoft.CommerceServer.Site.ProjectResources"
assembly="Microsoft.CommerceServer.Retail2002">
<culture id="en-US"/>

</cultures>
<resources>
<resource id="pur_badsku"/>
<resource id="pur_badplacedprice"/>
<resource id="pur_discount_changed"/>
<resource id="pur_discount_removed"/>
<resource id="pur_noitems"/>
<resource id="pur_badshipping"/>
<resource id="pur_badhandling"/>
<resource id="pur_badtax"/>
<resource id="pur_badcc"/>
<resource id="pur_badpayment"/>
<resource id="pur_badverify"/>
<resource id="pur_out_of_stock"/>
<resource id="pur_AddItem"/>
<resource id="pur_VariantPrice"/>
<resource id="unknown_shipping_method"/>
</resources>
</messageManager>


And then in the ProjectResources.en-US.resx file, make sure you have entries
for all of the above.

e.g
<data name="pur_badsku">
<value>Please note that one or more items were removed from your
order because the product is no longer sold.</value>
</data>
<data name="pur_badplacedprice">
<value>Please note that prices of products in your order have been
updated.</value>
</data>
<data name="pur_discount_changed">
<value>One or more discounts have changed.</value>
</data>
<data name="pur_discount_removed">
<value>One or more discounts no longer apply.</value>
</data>
<data name="pur_noitems">
<value>An order must have at least one item.</value>
</data>
<data name="pur_badshipping">
<value>Unable to complete order: cannot compute shipping
cost.</value>
</data>
<data name="pur_badhandling">
<value>Unable to complete order: cannot compute handling
cost.</value>
</data>
<data name="pur_badtax">
<value>Unable to complete order: cannot compute tax.</value>
</data>
<data name="pur_badcc">
<value>The credit-card number you provided is not valid. Please
verify your payment information or use a different card.</value>
</data>
<data name="pur_badpayment">
<value>There was a problem authorizing your credit. Please verify
your payment information or use a different card.</value>
</data>
<data name="pur_badverify">
<value>Changes to the data require your review. Please review and
re-submit.</value>
</data>
<data name="pur_out_of_stock">
<value>At least one item is out of stock.</value>
</data>
<data name="pur_AddItem">
<value>Added item to the order.</value>
</data>
<data name="pur_VariantPrice">
<value>Price on variant</value>
</data>
<data name="unknown_shipping_method">
<value>The selected shipping option is not currently available.
Please choose another shipping option.</value>
</data>

Hope this helps

--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Ugur KARATAS" <ugurkaratas@databul.com.tr> wrote in message
news:evv076QNEHA.640@TK2MSFTNGP12.phx.gbl...
> Hi All,
>
> Server Platform : Commerce Server 2002 + SP2
> Development Platform : Visual Studio 2003 + CS2002 tools
> Pages are developing in ASP.NET
>
> [Code Snip]
> Dim info As PipelineInfo = New PipelineInfo("basket")
> info("CacheName") = "discounts"
> info.Profiles.Add("User", userProfile)
> myBasket.RunPipeline(info) 'Works succesfully
>
> info = New PipelineInfo("Total")
> myBasket.RunPipeline(info) 'Generates Below Error
> [End of Code Snip]
>
>
> [Message Manager Definition]
> <messageManager>
> <cultures default="tr-TR" baseName="SiteName.MessageManager"
> assembly="SiteName">
> <culture id="en-US"/>
> </cultures>
> </messageManager>
> [End of Message Manager Definition]
>
> [Error]
> Component Execution failed for component[0x2] hr: 0x80004005 ProgID:
> Commerce.ShippingMethodRouter.1 Dictionary error: Value for key
> 'MessageManager' in dictionary 'context' is of the wrong type (expected a
> variant of type 9, got 0) (orderform=default)
> [End of Error]
>
>
> I cant figure out the problem?
> How can I fix it ?
>
>



Ugur KARATAS

2004-05-13, 4:32 pm

Thanks Michael, I fix the problem as your procedures.



"Ugur KARATAS" <ugurkaratas@databul.com.tr> wrote in message
news:evv076QNEHA.640@TK2MSFTNGP12.phx.gbl...
> Hi All,
>
> Server Platform : Commerce Server 2002 + SP2
> Development Platform : Visual Studio 2003 + CS2002 tools
> Pages are developing in ASP.NET
>
> [Code Snip]
> Dim info As PipelineInfo = New PipelineInfo("basket")
> info("CacheName") = "discounts"
> info.Profiles.Add("User", userProfile)
> myBasket.RunPipeline(info) 'Works succesfully
>
> info = New PipelineInfo("Total")
> myBasket.RunPipeline(info) 'Generates Below Error
> [End of Code Snip]
>
>
> [Message Manager Definition]
> <messageManager>
> <cultures default="tr-TR" baseName="SiteName.MessageManager"
> assembly="SiteName">
> <culture id="en-US"/>
> </cultures>
> </messageManager>
> [End of Message Manager Definition]
>
> [Error]
> Component Execution failed for component[0x2] hr: 0x80004005 ProgID:
> Commerce.ShippingMethodRouter.1 Dictionary error: Value for key
> 'MessageManager' in dictionary 'context' is of the wrong type (expected a
> variant of type 9, got 0) (orderform=default)
> [End of Error]
>
>
> I cant figure out the problem?
> How can I fix it ?
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com