Error Message Index was outside the bounds of the array.

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
ghansard
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Tue Jul 02, 2013 12:52 pm

Error Message Index was outside the bounds of the array.

Post by ghansard » Wed Aug 21, 2013 2:12 pm

We receive this message about once a week. Does anyone have any ideas. Is this a server issue or an able commerce issue.

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

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Error Message Index was outside the bounds of the array.

Post by Katie » Wed Aug 21, 2013 8:50 pm

Hi,

It looks like it might have something to do with the Custom URL feature. Which build of AbleCommerce are you currently using? I'd like to research this further for you.

Thanks
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

ghansard
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Tue Jul 02, 2013 12:52 pm

Re: Error Message Index was outside the bounds of the array.

Post by ghansard » Thu Aug 22, 2013 8:01 am

We are using Able Commerce Gold. Build 5731
AbleCommerce for ASP.NET
VERSION: 7.0.8.5731

ghansard
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Tue Jul 02, 2013 12:52 pm

Re: Error Message Index was outside the bounds of the array.

Post by ghansard » Thu Aug 22, 2013 8:38 am

This error only occurs on some/most product description pages. On the product description pages that do not contain this error the images sometimes do not load.

The homepage, most category pages, admin pages, etc will work. It's usually just the product description pages.

Thanks,
Greg

User avatar
ForumsAdmin
AbleCommerce Moderator
AbleCommerce Moderator
Posts: 399
Joined: Wed Mar 13, 2013 7:19 am

Re: Error Message Index was outside the bounds of the array.

Post by ForumsAdmin » Thu Aug 22, 2013 10:40 am

Do you have R5 service patch installed?
http://help.ablecommerce.com/upgrades/a ... old_r5.htm

ghansard
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Tue Jul 02, 2013 12:52 pm

Re: Error Message Index was outside the bounds of the array.

Post by ghansard » Thu Aug 22, 2013 11:11 am

no, How do I do that.

ghansard
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Tue Jul 02, 2013 12:52 pm

Re: Error Message Index was outside the bounds of the array.

Post by ghansard » Thu Aug 22, 2013 11:15 am

Do you think that this upgrade could be the problem or the server?

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Error Message Index was outside the bounds of the array.

Post by Katie » Thu Aug 22, 2013 11:47 am

The patch has a fix titled "Url Cache and Redirect Service cache are not thread safe", and I would bet that this will take care of the errors. The download and instructions are available from the link posted above.

Please let us know if this fixes the issue.

Thanks
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

ghansard
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Tue Jul 02, 2013 12:52 pm

Re: Error Message Index was outside the bounds of the array.

Post by ghansard » Sat Aug 24, 2013 5:59 am

I just received another error message this morning.

The error message was slightly different than before, and it affects the entire site.

Server Error in '/' Application.

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

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:


[NullReferenceException: Object reference not set to an instance of an object.]
System.Web.PipelineModuleStepContainer.GetEventCount(RequestNotification notification, Boolean isPostEvent) +30
System.Web.PipelineStepManager.ResumeSteps(Exception error) +266
System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb) +132
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +693

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

User avatar
ForumsAdmin
AbleCommerce Moderator
AbleCommerce Moderator
Posts: 399
Joined: Wed Mar 13, 2013 7:19 am

Re: Error Message Index was outside the bounds of the array.

Post by ForumsAdmin » Sun Aug 25, 2013 11:48 pm

The code where the exception originates appreas to be .NET framework code. I don't think it has to do with AC Gold. Seems like something went wrong with IIS pipelining. May be some temporary outage.

User avatar
david-ebt
Captain (CAPT)
Captain (CAPT)
Posts: 253
Joined: Fri Dec 31, 2010 10:12 am

Re: Error Message Index was outside the bounds of the array.

Post by david-ebt » Thu Aug 29, 2013 11:03 am

We're seeing the same issue with some 7.0.7 and 7.0.6 sites but only if the site uses Custom URLs. If the site does not use Custom URLs we don't see these messages. And the error messages have nothing to do with a Custom URLs. I've seen them for the default.aspx, a category page and a product page .
ERROR 2013-05-28 02:00:23,496 687ms Object DoLog - An error has occured at http://www.mysiteurl.com/default.aspx?u ... gn=Branded
System.NullReferenceException: Object reference not set to an instance of an object.
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at System.Collections.ObjectModel.KeyedCollection`2.AddKey(TKey key, TItem item)
at System.Collections.ObjectModel.KeyedCollection`2.InsertItem(Int32 index, TItem item)
at System.Collections.ObjectModel.Collection`1.Add(T item)
at CommerceBuilder.Catalog.DefaultUrlRewriter.InitializeCache()
at CommerceBuilder.Catalog.DefaultUrlRewriter.LoadCustomUrl(String resourceUrl)
at CommerceBuilder.Catalog.DefaultUrlRewriter.RewriteUrl(String sourceUrl)
at CommerceBuilder.Services.c.c(Object A_0, EventArgs A_1)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
ERROR 2013-08-28 02:00:53,903 531ms Object DoLog - An error has occured at http://www.mysiteurl.com/Putties-And-Fillers-C137.aspx
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at System.Collections.ObjectModel.KeyedCollection`2.AddKey(TKey key, TItem item)
at System.Collections.ObjectModel.KeyedCollection`2.InsertItem(Int32 index, TItem item)
at System.Collections.ObjectModel.Collection`1.Add(T item)
at CommerceBuilder.Catalog.DefaultUrlRewriter.InitializeCache()
at CommerceBuilder.Catalog.DefaultUrlRewriter.LoadCustomUrl(String resourceUrl)
at CommerceBuilder.Catalog.DefaultUrlRewriter.RewriteUrl(String sourceUrl)
at CommerceBuilder.Services.c.c(Object A_0, EventArgs A_1)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Is the thread safe issue a problem for previous versions, too?
David
http://www.ecombuildertoday.com
Enhanced Reporting for AbleCommerce
Image

ghansard
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Tue Jul 02, 2013 12:52 pm

Re: Error Message Index was outside the bounds of the array.

Post by ghansard » Thu Sep 05, 2013 8:33 am

Thanks for all the comments. It looks like the R5 service patch fixed the problem

Post Reply