Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » items-allowed in paragraphviewmodel

items-allowed in paragraphviewmodel

Lars Larsen
Lars Larsen
Reply

Hi

When having more than one itemtype in "items-allowed" I get this error:

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.] Dynamicweb.Rendering.Designer.Layout.GetContainers(Layout l) +854 Dynamicweb.Rendering.Designer.Layout.get_Containers() +36 Dynamicweb.Admin.ParagraphList1.GetContainers(Page currentPage) in E:\Agent\_work\94\s\01 - Applications\Dynamicweb.Admin\DW92\Dynamicweb.Admin\Admin\Content\ParagraphList.aspx.vb:508 Dynamicweb.Admin.ParagraphList1.Page_Load(Object sender, EventArgs e) in E:\Agent\_work\94\s\01 - Applications\Dynamicweb.Admin\DW92\Dynamicweb.Admin\Admin\Content\ParagraphList.aspx.vb:429 System.Web.UI.Control.OnLoad(EventArgs e) +109 System.Web.UI.Control.LoadRecursive() +68 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


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

My contentplaceholder looks like this:

@Model.Placeholder("content", "Venstre kolonne", "items-allowed:QandAs,HeadingAndText; sort: 2")

Running v9.2.7


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply
This post has been marked as an answer

Hi Lars,

I have registered this as a bug. TFS #31515

Unfortunately it doesn't look like there is any workaround.

Thank you for providing the details. A fix is coming ASAP.

BR Morten

Votes for this answer: 1

 

You must be logged in to post in the forum