¿为什么会这样? [英] ¿why is this happening?

查看:121
本文介绍了¿为什么会这样?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我扩展了OrderForm和Payment类。如果我用信用卡付款,一切都还可以。但如果我使用自己的付款,则会出错。



异常详情:System.Reflection.TargetException:对象与目标类型不匹配。 />


at Microsoft.CommerceServer.Runtime.Orders.PipelineAdapter.WriteDictionary(OrderForm orderForm)





这些行是错误的一部分。



但很少见,因为管道正在等待OrderForm并接收MyOrderForm(My orderForm Extended),它显示失败。但是,¿为什么信用卡不会发生?,我使用相同的MyOrderForm对象。



¿有人知道吗?谢谢!

I extended OrderForm and Payment class. If I make a pay with credit card, everything is OK. but if I use my own payment, it have an error.

Exception Details: System.Reflection.TargetException: Object does not match target type.

at Microsoft.CommerceServer.Runtime.Orders.PipelineAdapter.WriteDictionary(OrderForm orderForm)


those lines are part of the error.

But is rare because although could be normal that the pipeline is waiting for a OrderForm and recieve a MyOrderForm(My orderForm Extended), it show fail. But, ¿Why that don't happen with the credit card?, I use the same MyOrderForm object.

¿Somebody knows? Thanks!

推荐答案

除了例外,很明显你传递的对象与orderobjetmapping.xml或orderpipeline不匹配..xml文件。如果你能更好地解释这个问题,我们可以帮助你。

With the exception, it is clear that you are passing an object with doesn't match with orderobjetmapping.xml or orderpipeline..xml file. If you can explain the problem better, we can able to help you.

关心,

-Ravi Kanth Koppala

Regards,
-Ravi Kanth Koppala


这篇关于¿为什么会这样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆