|
Home > Archive > Commerce Server Solution Sites > January 2005 > A problem with Basket.Save() on WindowsXP (CS2k2 SP3)
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 |
A problem with Basket.Save() on WindowsXP (CS2k2 SP3)
|
|
| Branimir Giurov [C# MVP] 2005-01-13, 7:47 am |
| 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\T
ransactions\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\T
ransactions\TxContext.vb:167
Microsoft.CommerceServer.Site.Transactions.AddToCart.Submit_Clicked(Object
sender, EventArgs e) in
C:\Inetpub\wwwroot\retail2002\Controls\T
ransactions\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
| |
| WenJun Zhang[msft] 2005-01-16, 8:46 pm |
| Hi Branimir,
I'd suggest you first apply service pack 3 to have a check. It
contains a updated version Retail2002.
Commerce Server 2002 Service Pack 3 (SP3)
http://www.microsoft.com/downloads/...d=a29fe5a9-23c9
-4ae3-916b-f51d984275a4&displaylang=en
Please update here if the problem persists.
Thanks.
Best regards,
WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
| |
| WenJun Zhang[msft] 2005-01-19, 7:47 am |
| Hi Branimir,
Another thought of mine is you may check if MSDTC is enabled on this
machine(XP sp2 will disable it by default). Please look at the
following article.
883960 How to enable MSDTC communications with Commerce Server 2002
Developer
http://support.microsoft.com/?id=883960
Thanks.
Best regards,
WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security
|
|
|
|
|