BasketHelper: Object does not match target type.

I've

run into a weird exception on checkout now that I do not understand. At

this point, when the starter site is calling

CheckoutData.BasketHelper.RunBasketPipeline(), the following exception

is thrown: "System.Reflection.TargetException: Object does not match target type."

I have breakpoints both on that line as well as in the

RunBasketPipeline method, and it is getting the basket helper but

unable to call the method.

Any help you can provide is greatly appreciated.

Peter

[637 byte] By [PeterHaik] at [2007-12-27]
# 1
Still no luck, have recompiled the CommerceComponents and dug through the web.config with nothing seeming out of line.

Any thoughts as to other approaches?

PeterHaik at 2007-9-3 > top of Msdn Tech,Commerce Server,Commerce Server 2007...
# 2
*hangs head in shame*

So, for future reference, if you don't change /all/ of the references to use your new CreditCardPayments class, it will use the old one sometimes, and when you use the old one sometimes and not others, you will end up with some code expecting the object to be of one type rather than the actual one you're working with.

PeterHaik at 2007-9-3 > top of Msdn Tech,Commerce Server,Commerce Server 2007...
# 3

Heh Peter, don't worry about it. Thanks for sharing the solution though! It is good feedback for the product group to understand the challenges faced by developers. An oversight like this may be avoided with different approaches. I hope in future releases that we will see something closer to a proper entity mapping system.

Cheers,
Colin

ColinBowern at 2007-9-3 > top of Msdn Tech,Commerce Server,Commerce Server 2007...