Pipeline Execution Error Still Exists ????
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > Pipeline Execution Error Still Exists ????




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Pipeline Execution Error Still Exists ????  
Ugur KARATAS


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-12-04 01:20 AM

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 ?







[ Post a follow-up to this message ]



    Re: Pipeline Execution Error Still Exists ????  
Michael O'Donovan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-12-04 11: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 ?
>
>







[ Post a follow-up to this message ]



    Re: Pipeline Execution Error Still Exists ????  
Ugur KARATAS


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-13-04 09: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 ?
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:08 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

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

Back To The Top
Home | Usercp | Faq | Register