Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: Unable to cast object of type 'Microsoft.Xrm.Sdk.EntityReference' to type 'Microsoft.Xrm.Sdk.Entity'.
at Microsoft.Crm.Dialogs.ShareDialogPage.ConfigureForm() +0x5e3
at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e) +0x75
at Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e) +0x7
at System.Web.UI.Control.PreRenderRecursiveInternal() +0x54
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +0x6d3
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e) +0x11b
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +0x95a
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +0x69
at System.Web.UI.Page.ProcessRequest() +0x14
at System.Web.UI.Page.ProcessRequest(HttpContext context) +0x38
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +0x18d
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +0x64
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +0x15: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #6C050651Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>39d9046a-7735-4ff8-84bb-9b545553d020</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<HelpLink i:nil="true" />
<Message>System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: Unable to cast object of type 'Microsoft.Xrm.Sdk.EntityReference' to type 'Microsoft.Xrm.Sdk.Entity'.
at Microsoft.Crm.Dialogs.ShareDialogPage.ConfigureForm() +0x5e3
at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e) +0x75
at Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e) +0x7
at System.Web.UI.Control.PreRenderRecursiveInternal() +0x54
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +0x6d3
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e) +0x11b
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +0x95a
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +0x69
at System.Web.UI.Page.ProcessRequest() +0x14
at System.Web.UI.Page.ProcessRequest(HttpContext context) +0x38
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +0x18d
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +0x64
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +0x15: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #6C050651</Message>
<Timestamp>2021-02-08T13:34:50.0016635Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>39d9046a-7735-4ff8-84bb-9b545553d020</ActivityId>
<ErrorCode>-2147220891</ErrorCode>
<ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
<HelpLink i:nil="true" />
<Message>Unable to cast object of type 'Microsoft.Xrm.Sdk.EntityReference' to type 'Microsoft.Xrm.Sdk.Entity'.</Message>
<Timestamp>2021-02-08T13:34:50.0016635Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>
[LearnPlugin: LearnPlugin.send_eamil]
[93d33831-4768-eb11-a812-0022486e9611: LearnPlugin.send_eamil: Create of account]
</TraceText>
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>