Error Message Index was outside the bounds of the array.
Error Message Index was outside the bounds of the array.
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
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: Error Message Index was outside the bounds of the array.
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
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
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
Re: Error Message Index was outside the bounds of the array.
We are using Able Commerce Gold. Build 5731
AbleCommerce for ASP.NET
VERSION: 7.0.8.5731
AbleCommerce for ASP.NET
VERSION: 7.0.8.5731
Re: Error Message Index was outside the bounds of the array.
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
The homepage, most category pages, admin pages, etc will work. It's usually just the product description pages.
Thanks,
Greg
- ForumsAdmin
- AbleCommerce Moderator
- Posts: 399
- Joined: Wed Mar 13, 2013 7:19 am
Re: Error Message Index was outside the bounds of the array.
Do you have R5 service patch installed?
http://help.ablecommerce.com/upgrades/a ... old_r5.htm
http://help.ablecommerce.com/upgrades/a ... old_r5.htm
Re: Error Message Index was outside the bounds of the array.
no, How do I do that.
Re: Error Message Index was outside the bounds of the array.
Do you think that this upgrade could be the problem or the server?
Re: Error Message Index was outside the bounds of the array.
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
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
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
Re: Error Message Index was outside the bounds of the array.
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
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
- ForumsAdmin
- AbleCommerce Moderator
- Posts: 399
- Joined: Wed Mar 13, 2013 7:19 am
Re: Error Message Index was outside the bounds of the array.
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.
Re: Error Message Index was outside the bounds of the array.
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)
Is the thread safe issue a problem for previous versions, too?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)
Re: Error Message Index was outside the bounds of the array.
Thanks for all the comments. It looks like the R5 service patch fixed the problem