• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Jazzsingh
#1 Posted : Monday, July 14, 2008 1:54:03 PM(UTC)
Jazzsingh

Rank: Member

Joined: 10/28/2003(UTC)
Posts: 168

What is the purpose of this code ?

Rates.RemoveAt(1)
Line 53: If Rates.Count > 2 Then
Line 54: Rates.RemoveAt(3)
Line 55: End If


Its gives error:

BVModules\Controls\Shipping.ascx.vb:54



[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
System.Collections.CollectionBase.RemoveAt(Int32 index) +2436629
BVModules_Controls_Shipping.LoadShippingMethodsForOrder(Order o, String Zip) in D:\Inetpub\wwwroot\domains\officialticketcenter\BVModules\Controls\Shipping.ascx.vb:54
BVModules_Checkouts_One_Page_Checkout_Checkout.LoadBasket() in D:\Inetpub\wwwroot\domains\officialticketcenter\BVModules\Checkouts\One Page Checkout\Checkout.aspx.vb:69
BVModules_Checkouts_One_Page_Checkout_Checkout.PageLoad(Object sender, EventArgs e) in D:\Inetpub\wwwroot\domains\officialticketcenter\BVModules\Checkouts\One Page Checkout\Checkout.aspx.vb:28
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
Jazz Singh
SEO, Ecommerce, BVSoftware Development, Database Development, SQL Scripts,

www.DesignMarketSEO.com

www.sequent-tech.com
Andy Miller
#2 Posted : Monday, July 14, 2008 2:40:02 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
I can't find that code in my copy of Shipping.ascx.vb. I think someone has customized the code (and introduced a bug because they forgot that arrays are zero based).
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
Jazzsingh
#3 Posted : Tuesday, July 15, 2008 3:02:48 PM(UTC)
Jazzsingh

Rank: Member

Joined: 10/28/2003(UTC)
Posts: 168

thanks Andy.

I was able to solve the problem.
Jazz Singh
SEO, Ecommerce, BVSoftware Development, Database Development, SQL Scripts,

www.DesignMarketSEO.com

www.sequent-tech.com
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012