|
Home > Archive > Commerce Server General > October 2006 > GetBasket - InvalidCastException
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 |
GetBasket - InvalidCastException
|
|
| Colin Bowern 2006-10-09, 7:22 am |
| In my unit tests I'm noticing the following from time-to-time:
Test method ShoppingCartTest.UpdateTest1 threw exception:
System.InvalidCastException: CoCreateInstance returned an unexpected type:
expected Microsoft.CommerceServer.Internal.Orders.MtsHelper, received
Microsoft.CommerceServer.Interop.PooledPipelineClass..
at
System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type
serverType)
at
System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type
serverType, Object[] props, Boolean bNewObj)
at Microsoft.CommerceServer.Runtime.Orders.BasketGroupLoader.Load(String
storedProcName, ListDictionary sqlParameters)
at Microsoft.CommerceServer.Runtime.Orders.OrderContext.GetBasket(Guid
userId)
at CommerceServer.ShoppingCartSystem.Retrieve(Guid basketId)
at ShoppingCart.get_Basket()
at ShoppingCartTest.UpdateTest1()
Any thoughts from the product group folks lurking as to why this would cast
as one type as opposed to the other?
Thanks,
Colin
| |
| Vinod Kumar[MSFT] 2006-10-10, 1:30 am |
| Are you on CS2002 or 2007? Looking at the stack trace it seems like CS2002. Can you confirm?
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2002 Microsoft Corporation. All rights
reserved.
--------------------
From: "Colin Bowern" <colin.bowern@nospam.officialcommunity.com>
Subject: GetBasket - InvalidCastException
Date: Sun, 8 Oct 2006 22:42:03 -0400
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.2663
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757
Message-ID: <uo67By06GHA.2380@TK2MSFTNGP02.phx.gbl>
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: cmr-208-97-124-82.cr.net.cable.rogers.com 208.97.124.82
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP02.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.commerceserver.general:18639
X-Tomcat-NG: microsoft.public.commerceserver.general
In my unit tests I'm noticing the following from time-to-time:
Test method ShoppingCartTest.UpdateTest1 threw exception:
System.InvalidCastException: CoCreateInstance returned an unexpected type:
expected Microsoft.CommerceServer.Internal.Orders.MtsHelper, received
Microsoft.CommerceServer.Interop.PooledPipelineClass..
at
System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type
serverType)
at
System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type
serverType, Object[] props, Boolean bNewObj)
at Microsoft.CommerceServer.Runtime.Orders.BasketGroupLoader.Load(String
storedProcName, ListDictionary sqlParameters)
at Microsoft.CommerceServer.Runtime.Orders.OrderContext.GetBasket(Guid
userId)
at CommerceServer.ShoppingCartSystem.Retrieve(Guid basketId)
at ShoppingCart.get_Basket()
at ShoppingCartTest.UpdateTest1()
Any thoughts from the product group folks lurking as to why this would cast
as one type as opposed to the other?
Thanks,
Colin
| |
| Colin Bowern 2006-10-10, 1:19 pm |
| Vinod,
CS2007 Developer Edition. The stack trace is from the VSTS unit test
results.
Thanks,
Colin
"Vinod Kumar[MSFT]" <vkumar@online.microsoft.com> wrote in message
news:V$MzKz96GHA.4348@TK2MSFTNGXA01.phx.gbl...
> Are you on CS2002 or 2007? Looking at the stack trace it seems like
> CS2002. Can you confirm?
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> You assume all risk for your use. © 2002 Microsoft Corporation. All rights
> reserved.
> --------------------
> From: "Colin Bowern" <colin.bowern@nospam.officialcommunity.com>
> Subject: GetBasket - InvalidCastException
> Date: Sun, 8 Oct 2006 22:42:03 -0400
> Lines: 28
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.3790.2663
> X-RFC2646: Format=Flowed; Original
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757
> Message-ID: <uo67By06GHA.2380@TK2MSFTNGP02.phx.gbl>
> Newsgroups: microsoft.public.commerceserver.general
> NNTP-Posting-Host: cmr-208-97-124-82.cr.net.cable.rogers.com 208.97.124.82
> Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP02.phx.gbl
> Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.commerceserver.general:18639
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> In my unit tests I'm noticing the following from time-to-time:
>
> Test method ShoppingCartTest.UpdateTest1 threw exception:
> System.InvalidCastException: CoCreateInstance returned an unexpected type:
> expected Microsoft.CommerceServer.Internal.Orders.MtsHelper, received
> Microsoft.CommerceServer.Interop.PooledPipelineClass..
>
> at
> System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type
> serverType)
> at
> System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type
> serverType, Object[] props, Boolean bNewObj)
> at Microsoft.CommerceServer.Runtime.Orders.BasketGroupLoader.Load(String
> storedProcName, ListDictionary sqlParameters)
> at Microsoft.CommerceServer.Runtime.Orders.OrderContext.GetBasket(Guid
> userId)
> at CommerceServer.ShoppingCartSystem.Retrieve(Guid basketId)
> at ShoppingCart.get_Basket()
> at ShoppingCartTest.UpdateTest1()
>
> Any thoughts from the product group folks lurking as to why this would
> cast
> as one type as opposed to the other?
>
> Thanks,
> Colin
>
>
>
>
|
|
|
|
|