BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hello.
I have problem to add new page with DiagramWebControl to existing website.
When I trying to load page with diagram I get following error:
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.Web.HttpException: The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.
Source Error:
|
Source File:c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\b894f2a9\fbf83466\App_Web_a30c4m1s.0.cs Line:0
Stack Trace:
|
Version Information:Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18033
I have tried to change application pools from integrated to classic.
When I create new web site with diagram control - everything ok.
Following aspx and cs files:
<%@PageLanguage="C#"AutoEventWireup="true"CodeFile="UserOrgChartTest.aspx.cs"Inherits="OrgChart_UserOrgChart"%>
<%@Registerassembly="Syncfusion.Diagram.Web, Version=11.104.0.21, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89"namespace="Syncfusion.Web.UI.WebControls.Diagram"tagprefix="syncfusion"%>
<!DOCTYPEhtml>
<htmlxmlns="http://www.w3.org/1999/xhtml">
<headrunat="server">
<title></title>
</head>
<body>
<formid="form1"runat="server">
<syncfusion:DiagramWebControlID="DiagramWebControl2"runat="server"Height="500px"Width="600px"/>
</form>
</body>
</html>
///////////////////////////////////////////////////
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Web;
usingSystem.Web.UI;
usingSystem.Web.UI.WebControls;
publicpartialclassOrgChart_UserOrgChart: System.Web.UI.Page
{
protectedvoidPage_Load(objectsender,EventArgse)
{
}
}
Hello.
I have found the source of problem.
Need to append
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
Best regards.
Hi Igor,
Thanks for using Syncfusion products.
We are happy to hear that the issue has been resolved by
yourself. Please let us know if you require any further assistance on this.
Regards,
Amsath