We are in the process of migrating a clients site to a new server. Both servers are running II7, one difference is the new environment is using MSSQL 2008 while the live site uses MSSQL 2008R2.
We have a dynamic content control which simply renders an anchor.
When we visit pages that have this dynamic content we get the follow exception:
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.
Hi there,
We are in the process of migrating a clients site to a new server.
Both servers are running II7, one difference is the new environment is using MSSQL 2008 while the live site uses MSSQL 2008R2.
We have a dynamic content control which simply renders an anchor.
When we visit pages that have this dynamic content we get the follow exception:
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.] EPiServer.DynamicContent.DynamicContentBase.set_State(String value) +341 EPiServer.DynamicContent.DynamicContentFactory.CreateDynamicContent(String name, String state, String hash, Boolean validateHash) +62 EPiServer.Core.Html.StringParsing.DynamicContentFragment..ctor(IDynamicContentFactory factory, ISecuredFragmentMarkupGenerator securedFragmentMarkupGenerator, String dynamicClass, String state, String hash, Boolean evaluateHash) +82 EPiServer.Core.Html.StringParsing.FragmentParser.ExtractDynamicContentFromElement(HtmlFragmentData fragmentData, ElementFragment element) +371 EPiServer.Core.Html.StringParsing.FragmentParser.TryToExtractDynamicContent(HtmlFragmentData fragmentData, ElementFragment element) +147 EPiServer.Core.Html.StringParsing.FragmentParser.ParseElement(HtmlFragmentData fragmentData, ElementFragment element) +31 EPiServer.Core.Html.StringParsing.FragmentParser.ProcessFragments(HtmlFragmentData fragmentData, Boolean returnOnEndElement) +318 EPiServer.Core.Html.StringParsing.FragmentParser.Parse(String html, FragmentParserMode parserMode, Boolean evaluateHash) +194 EPiServer.SpecializedProperties.PropertyXhtmlString.CreateStringFragments(String html, Boolean evaluateHash, FragmentParserMode parserMode) +87 EPiServer.SpecializedProperties.PropertyXhtmlString.SetInternalStateNoCheck(String value, SetStateAction action, FragmentParserMode parserMode) +42 EPiServer.SpecializedProperties.PropertyXhtmlString.get_Fragments() +35 EPiServer.Web.PropertyControls.PropertyLongStringControlBase.CreateDefaultControls() +211 System.Web.UI.Control.EnsureChildControls() +146 EPiServer.Web.PropertyControls.PropertyDataControl.SetupControl() +13 EPiServer.Web.WebControls.Property.CreateChildControls() +658 System.Web.UI.Control.EnsureChildControls() +146 System.Web.UI.Control.PreRenderRecursiveInternal() +61 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Control.PreRenderRecursiveInternal() +224 System.Web.UI.Control.PreRenderRecursiveInternal() +224
I have logged a Issue with support, but unfortunately they have not been able to resolve the issue yet.
Any one out there have any suggestions?
Thanks!