SharePoint 2013 - Visio Web Access problem

1 comment
When adding a Visio Web Part to apage in SharePoint I got the error:

The control collection can not be modified During DataBind, Init, Load, PreRender or Unload phases


None of the settings helped, but a italian web page gave me a hint (via google translate ;)
http://sharepointlatobi.wordpress.com/2013/09/23/the-control-collection-cannot-be-modified-during-databind-init-load-prerender-or-unload-phases/

I was using a bootstrap master page for this SharePoint installation, and in the head of bootstrap.html I had:

<head>
....
<!--MS:<SharePoint:AjaxDelta id="DeltaSPWebPartManager" runat="server">-->
<!--MS:<WebPartPages:SPWebPartManager runat="server">-->
<!--ME:</WebPartPages:SPWebPartManager>-->
<!--ME:</SharePoint:AjaxDelta>-->
...
</head>
<body>
<div id="ms-designer-ribbon">
...
</body>

I took this entire section and moved it directly under the body tag:

<head>
...
</head>
<body>
<!--MS:<SharePoint:AjaxDelta id="DeltaSPWebPartManager" runat="server">-->
<!--MS:<WebPartPages:SPWebPartManager runat="server">-->
<!--ME:</WebPartPages:SPWebPartManager>-->
<!--ME:</SharePoint:AjaxDelta>-->
<div id="ms-designer-ribbon">
...
</body>

Amazingly it fixed the display of my Visio Web part. Thanks Bi!

1 comment :

  1. I just used your solution and it worked a 100%. Thank you

    ReplyDelete