
Hello,
I have MS Dynamics 365 CRM Version 1612 (8.2.2.112)
And Microsoft Dynamics 365 Portals 8.3 and both are on-premise.
When by Administrator or any user trying to create a new case from the portal it gives me error, I have changed the case entity name to Application.
The error is:
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:
Line 458: protected override void CreateChildControls()
Line 459: {
Line 460: Controls.Clear();
Line 461:
Line 462: RegisterClientSideDependencies(this);
|
Source File: C:\Portal Source Code\Portals\Framework\Adxstudio.Xrm\Web\UI\WebControls\EntityForm.cs Line: 460
Stack Trace:
[HttpException (0x80004005): The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.] System.Web.UI.ControlCollection.RemoveAt(Int32 index) +11812135 System.Web.UI.ControlCollection.Clear() +48 Adxstudio.Xrm.Web.UI.WebControls.EntityForm.CreateChildControls() in C:\Portal Source Code\Portals\Framework\Adxstudio.Xrm\Web\UI\WebControls\EntityForm.cs:460 System.Web.UI.Control.EnsureChildControls() +115 System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +40 System.Web.UI.WebControls.DataBoundControlHelper.FindControl(Control control, String controlID) +112 System.Web.UI.WebControls.DataBoundControl.GetDataSource() +11757177 System.Web.UI.WebControls.DataBoundControl.ConnectToDataSourceView() +62 System.Web.UI.WebControls.DataBoundControl.OnLoad(EventArgs e) +27 System.Web.UI.Control.LoadRecursive() +68 System.Web.UI.Control.LoadRecursive() +165 System.Web.UI.Control.LoadRecursive() +165 System.Web.UI.Control.LoadRecursive() +165 System.Web.UI.Control.LoadRecursive() +165 System.Web.UI.Control.LoadRecursive() +165 System.Web.UI.Control.LoadRecursive() +165 System.Web.UI.Control.LoadRecursive() +165 System.Web.UI.Control.LoadRecursive() +165 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4498 |
Appreciate your assistance
*This post is locked for comments
I have the same question (0)I figured it out after, When I changed the form name it has been removed from the entity form in the portal configurations so I just chose again the form then it worked.