Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Commerce Server Solutiionsites > A problem with ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 212 of 307
Post > Topic >>

A problem with Basket.Save() on WindowsXP (CS2k2 SP3)

by Branimir Giurov [C# MVP] <branimir@[EMAIL PROTECTED] > Jan 13, 2005 at 04:21 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\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
 




 3 Posts in Topic:
A problem with Basket.Save() on WindowsXP (CS2k2 SP3)
Branimir Giurov [C# MVP]   2005-01-13 04:21:41 
RE: A problem with Basket.Save() on WindowsXP (CS2k2 SP3)
v-wzhang@[EMAIL PROTECTED  2005-01-17 02:21:53 
RE: A problem with Basket.Save() on WindowsXP (CS2k2 SP3)
v-wzhang@[EMAIL PROTECTED  2005-01-19 10:41:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 17:07:00 CST 2008.