Page 1 of 1

Index was outside the bounds of the array IndexOutOfRangeEce

Posted: Wed Dec 18, 2013 11:19 am
by Tea-Dev
Hi,
We had a working website up until an hour ago and we started getting errors on the website. Do you have any suggestions?
Any help is appreciated.

Code: Select all

Server Error in '/' Application.
Index was outside the bounds of the array.

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.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[IndexOutOfRangeException: Index was outside the bounds of the array.]
   System.Collections.Generic.Dictionary`2.Resize() +309
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +379
   CommerceBuilder.Utility.LRUCache`2.set_Item(TKey key, TValue value) +67
   CommerceBuilder.Catalog.UrlCache.GetCustomUrl(String requestPath) +244
   CommerceBuilder.Catalog.DefaultUrlRewriter.RewriteUrl(String sourceUrl, String appPath, String host) +272
   CommerceBuilder.Services.HttpModule.b(Object A_0, EventArgs A_1) +3151
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270


Re: Index was outside the bounds of the array IndexOutOfRangeEce

Posted: Wed Dec 18, 2013 12:09 pm
by Katie
What version are you using? What page has this error (default, category, product, etc)? Did anything change an hour ago (customization, database update)?

Re: Index was outside the bounds of the array IndexOutOfRangeEce

Posted: Wed Dec 18, 2013 1:31 pm
by Tea-Dev
The error appears in 2 places. When we click on a category (menu on left) or when we click on a product to view its detail.


AbleCommerce for ASP.NET
VERSION: 7.0.8.5731
DATABASE: NHibernate.Dialect.MsSql2005Dialect
.NET CLR v4.0.30319.1008
ASP.NET TRUST: Unrestricted

AjaxControlToolkit: 4.1.51116.0
AntiXssLibrary: 4.0.0.0
Castle.Core: 2.5.1.0
Castle.Windsor: 2.5.1.0
CommerceBuilder: 7.85.4895.17197
CommerceBuilder.AcTestProvider: 7.85.4889.38779
CommerceBuilder.Amazon: 7.85.4890.29655
CommerceBuilder.AustraliaPost: 7.85.4889.38779
CommerceBuilder.AuthorizeNet: 7.85.4889.38777
CommerceBuilder.AvaTax: 7.85.4889.38777
CommerceBuilder.BankOfCanada: 7.85.4889.38779
CommerceBuilder.CanadaPost: 7.85.4889.38779
CommerceBuilder.CyberSource: 7.85.4889.38777
CommerceBuilder.DHLInternational: 7.85.4889.38778
CommerceBuilder.ECB: 7.85.4889.38778
CommerceBuilder.GoogleCheckout: 7.85.4890.29663
CommerceBuilder.InternetSecure: 7.85.4889.38778
CommerceBuilder.Licensing: 7.85.4895.17205
CommerceBuilder.LinkPoint: 7.85.4889.38778
CommerceBuilder.Paradata: 7.85.4889.38778
CommerceBuilder.PayFlowPro: 7.85.4889.38778
CommerceBuilder.PayJunction: 7.85.4889.38778
CommerceBuilder.PaymentechOrbital: 7.85.4889.38777
CommerceBuilder.PayPal: 7.85.4890.29660
CommerceBuilder.Protx: 7.85.4889.38777
CommerceBuilder.SkipJack: 7.85.4889.38778
CommerceBuilder.UI: 7.85.4895.17205
CommerceBuilder.UPS: 7.85.4889.38776
CommerceBuilder.USPS: 7.85.4889.38776
CommerceBuilder.Utility.Csv: 8.0.0.0
CommerceBuilder.WATax: 7.85.4889.38777
CommerceBuilder.WebApi: 7.85.4895.17206
CyberSource.Base: 2.0.0.0
CyberSource.Clients: 5.0.2.0
CyberSource.Clients.XmlSerializers: 5.0.2.0
CyberSource.WSSecurity: 2.0.0.0
CybsWSSecurityIOP: 1.0.0.0
HtmlSanitizationLibrary: 4.0.0.0
ICSharpCode.SharpZipLib: 0.86.0.518
Iesi.Collections: 1.0.1.0
log4net: 1.2.10.0
Lucene.Net: 2.9.4.1
Microsoft.Data.Edm: 5.1.0.0
Microsoft.Data.OData: 5.1.0.0
Microsoft.Data.OData.Contrib: 5.1.0.0
Microsoft.Web.Infrastructure: 1.0.0.0
Microsoft.Web.Mvc: 2.0.0.0
MvcContrib: 2.0.95.0
Newtonsoft.Json: 4.5.0.0
NHibernate: 3.3.1.4001
NHibernate.ByteCode.Castle: 3.1.0.4000
NHibernate.Caches.SysCache: 3.1.0.4000
NHibernate.Search: 2.0.2.4001
NVelocity: 7.2.0.0
PaygatewayNET: 3.0.0.0
paypal_base: 4.2.1.0
SanitizerProviders: 1.0.0.0
System.Net.Http: 2.0.0.0
System.Net.Http.Formatting: 4.0.0.0
System.Spatial: 5.1.0.0
System.Web.Http: 4.0.0.0
System.Web.Http.OData: 0.2.0.0
System.Web.Http.WebHost: 4.0.0.0
System.Web.Mvc: 4.0.0.0
System.Web.Razor: 2.0.0.0
System.Web.WebPages: 2.0.0.0
System.Web.WebPages.Deployment: 2.0.0.0
System.Web.WebPages.Razor: 2.0.0.0
wwHoverPanel: 1.85.0.0

Re: Index was outside the bounds of the array IndexOutOfRangeEce

Posted: Thu Dec 19, 2013 1:02 pm
by Katie
Did you apply the patch to fix issue "Url Cache and Redirect Service cache are not thread safe"?

http://help.ablecommerce.com/index.htm# ... s_gold.htm

Did anything change just before the errors appeared (customization, database update)?