web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Error in Portal when creating a new case

(0) ShareShare
ReportReport
Posted on by 65

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:

Server Error in '/' Application.


The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.

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)
  • Verified answer
    Mahmoud Desouky Profile Picture
    65 on at

    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.  

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans