Branimir Giurov
2005-01-10 14:09:02 UTC
Hi there,
I have a problem with the default installation of CS2k2's Retail solution
site. When I open the solution, build it, and then add an item to my cart I
recieve the following exception:
Application uses a value of the wrong type for the current operation.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Application
uses a value of the wrong type for the current operation.
Source Error:
Line 165:
Line 166:
Line 167: Cart.Save()
Line 168: End If
Line 169: End If
Source File:
C:\Inetpub\wwwroot\retail2002\Controls\Transactions\TxContext.vb Line: 167
Stack Trace:
[COMException (0x800a0d5d):
Application uses a value of the wrong type for the current operation.]
Microsoft.CommerceServer.Interop.Orders.DBStorageClass.InsertData(Object
vtReserved, Object pdispData) +0
Microsoft.CommerceServer.Interop.Orders.MTSHelperImpl.SaveDictToTable(Int16&
bExists, IDictionary& dict, String& table, String& key, Object& exception,
Object& exception2, DBStorage& dbs, Boolean& bReinitializeDBS, String&
SavePrefix, String& dsn, String& userid)
Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.SaveFlat(LoadedFromState my_save_to)
Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.SaveAsBasket()
[CommerceException: SaveAsBasket Failed.]
Microsoft.CommerceServer.Internal.Common.Util.ThrowCommerceException(String
message, Exception inner, String source)
Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.SaveAsBasket()
Microsoft.CommerceServer.Runtime.Orders.Basket.Save()
[CommerceOrderSystemException: Failed to save basket state to underlying
stores.]
Microsoft.CommerceServer.Runtime.Orders.Basket.Save()
Microsoft.CommerceServer.Site.Transactions.TransactionContext.get_CartOrderForm() in C:\Inetpub\wwwroot\retail2002\Controls\Transactions\TxContext.vb:167
Microsoft.CommerceServer.Site.Transactions.AddToCart.Submit_Clicked(Object
sender, EventArgs e) in
C:\Inetpub\wwwroot\retail2002\Controls\Transactions\AddToCart.ascx.vb:253
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
We're using XP SP2 and CS2k2 with SP2 and FP1.
Any ideas about the cause of the exception and how to avoid it?
Cheers,
Branimir
I have a problem with the default installation of CS2k2's Retail solution
site. When I open the solution, build it, and then add an item to my cart I
recieve the following exception:
Application uses a value of the wrong type for the current operation.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Application
uses a value of the wrong type for the current operation.
Source Error:
Line 165:
Line 166:
Line 167: Cart.Save()
Line 168: End If
Line 169: End If
Source File:
C:\Inetpub\wwwroot\retail2002\Controls\Transactions\TxContext.vb Line: 167
Stack Trace:
[COMException (0x800a0d5d):
Application uses a value of the wrong type for the current operation.]
Microsoft.CommerceServer.Interop.Orders.DBStorageClass.InsertData(Object
vtReserved, Object pdispData) +0
Microsoft.CommerceServer.Interop.Orders.MTSHelperImpl.SaveDictToTable(Int16&
bExists, IDictionary& dict, String& table, String& key, Object& exception,
Object& exception2, DBStorage& dbs, Boolean& bReinitializeDBS, String&
SavePrefix, String& dsn, String& userid)
Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.SaveFlat(LoadedFromState my_save_to)
Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.SaveAsBasket()
[CommerceException: SaveAsBasket Failed.]
Microsoft.CommerceServer.Internal.Common.Util.ThrowCommerceException(String
message, Exception inner, String source)
Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.SaveAsBasket()
Microsoft.CommerceServer.Runtime.Orders.Basket.Save()
[CommerceOrderSystemException: Failed to save basket state to underlying
stores.]
Microsoft.CommerceServer.Runtime.Orders.Basket.Save()
Microsoft.CommerceServer.Site.Transactions.TransactionContext.get_CartOrderForm() in C:\Inetpub\wwwroot\retail2002\Controls\Transactions\TxContext.vb:167
Microsoft.CommerceServer.Site.Transactions.AddToCart.Submit_Clicked(Object
sender, EventArgs e) in
C:\Inetpub\wwwroot\retail2002\Controls\Transactions\AddToCart.ascx.vb:253
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
We're using XP SP2 and CS2k2 with SP2 and FP1.
Any ideas about the cause of the exception and how to avoid it?
Cheers,
Branimir