09-08-05 12:52 PM
You're using a "0" as an index into the LineItems collection... either use a
for each lineitem in orderform.lineitems or start from 1.
--
Ravi Shankar
"vensi" wrote:
> I am getting this error in my production box any input is appreciated
>
> An error occured while processing the request. Request Url:
> https://www.jwod.com/payment.aspx? ...82D123F282012BB
E00C93DF3F583BE99057661ADBB9CF38D96BCE28
32B829A1076488187930361B81EAFFE00E7701C3
F98749B2E69B
9F3AED4D381B2975448DB1005C44F528B8[vbcol
=seagreen]
> Stack Trace: System.Web.HttpUnhandledException: Exception of type
> System.Web.HttpUnhandledException was thrown. --->
> Microsoft.CommerceServer.Runtime.Orders.CommerceOrderSystemException: Fail
ed
> to retrieve item #0 from the line item collection. --->
> Microsoft.CommerceServer.Runtime.CommerceException: GetItemInfo Failed. --
->
> System.Runtime.InteropServices.COMException (0x8002000B): Invalid index.
> at Microsoft.CommerceServer.Runtime.ISimpleList.get_Item(Int32 Index)
> at
> Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.GetItemInfo
(Int32 nItemIndex, Object strOrderFormName)
> --- End of inner exception stack trace ---
> at
> Microsoft.CommerceServer.Internal.Common.Util.ThrowCommerceException(Strin
g
> message, Exception inner, String source)
> at
> Microsoft.CommerceServer.Interop.Orders.OrderGroupFreeThreaded.GetItemInfo
(Int32 nItemIndex, Object strOrderFormName)
> at Microsoft.CommerceServer.Runtime.Orders.LineItemCollection.get_Item(Int
32
> itemIndex)
> --- End of inner exception stack trace ---
> at Microsoft.CommerceServer.Site.Payment.btnPurchase_Click(Object sender,
> EventArgs e)
> at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
> at
> System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.Raise
PostBackEvent(String eventArgument)
> at System.Web.UI.Page. RaisePostBackEvent(IPostBackEventHandler
> sourceControl, String eventArgument)
> at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
> at System.Web.UI.Page.ProcessRequestMain()
> --- End of inner exception stack trace ---
> at System.Web.UI.Page.HandleError(Exception e)
> at System.Web.UI.Page.ProcessRequestMain()
> at System.Web.UI.Page.ProcessRequest()
> at System.Web.UI.Page.ProcessRequest(HttpContext context)
> at System.Web.CallHandlerExecutionStep.Execute()
> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
> completedSynchronously)
>[/vbcol]
[ Post a follow-up to this message ]
|