CRM2016 Unable to get property ‘ClientVariables’ of undefined or null reference

2007_microsoft_dynamics_crmWhen I tried to open a Task in the Activity inside CRM2016 I have a blank screen.

Problem

In javascript I have error on
Unable to get property ‘ClientVariables’ of undefined or null reference
I tried to open a task with Administrator user but I have alway the same problem.
I used the CRM diagnostic tool and I found this error inside the log:

2016-03-09 14:34:28.823] Process: w3wp |Organization:5f48a1a7-88df-e511-93f8-00155d50690f |Thread: 20 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | RetrieveCommand.Execute ilOffset = 0x2
Post-Platform Request: Retrieve
[2016-03-09 14:34:28.823] Process: w3wp |Organization:5f48a1a7-88df-e511-93f8-00155d50690f |Thread: 20 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | Util.TraceMessage ilOffset = 0x79
UserId ({D4940804-3DF9-E211-92B5-00155D05B20C}): FormDescriptor: Creating new form descriptor. LCID: 1033. EntityType: 4212. FormType: Main. FormId: b62ce022-cc0f-4c8c-bb29-21948f70dc74
[2016-03-09 14:34:28.839] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | MainApplication.Application_Error ilOffset = 0x9F
Request d2devcrm10/.../layout.aspx;formid=16654191-19ad-48ca-9e46-c4b4fbdad76f&formts=3085142&hash=EA1390550CBFB3F9BE24FC68C3374613C730841943680D5FA152B67E73B4C7B9&isPreview=False&isTurboForm=False&outlook=False failed with exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. --- System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Crm.Application.CellDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab, Boolean isInFirstColumn, Boolean isInLastColumn)
at Microsoft.Crm.Application.CellCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
at Microsoft.Crm.Application.RowDescriptor..ctor(IXPathNavigable node, EntityMetadata entityMetadata, FormDescriptor formDescriptor, Boolean rowVisible, TabDescriptor containerTab)
at Microsoft.Crm.Application.RowCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, Int32 sectionColumns, TabDescriptor containerTab)
at Microsoft.Crm.Application.SectionCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
at Microsoft.Crm.Application.ColumnDescriptor..ctor(XmlNode columnNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
at Microsoft.Crm.Application.ColumnCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
at Microsoft.Crm.Application.TabDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor)
at Microsoft.Crm.Application.TabCollection..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor)
at Microsoft.Crm.Application.FormDescriptor.InitializeObjectModel(XmlNode formNode, EntityMetadata entityMetadata, FormType formType)
at Microsoft.Crm.Application.FormDescriptor.Initialize(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType)
at Microsoft.Crm.Application.FormDescriptor..ctor(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType, Boolean isUserForm, Boolean isActive, IOrganizationContext context)
at Microsoft.Crm.Application.FormDescriptor..ctor(Int32 typeCode, XmlNode formXml, Guid formId, FormType formType, Int64 versionNumber, FormPresentationMode formPresentation, Boolean isActive, IOrganizationContext context)
at Microsoft.Crm.Application.Forms.FormDescriptorLoader.LoadCacheData(FormDescriptorCacheKey key, IOrganizationContext context)
at Microsoft.Crm.Caching.CrmSharedMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.Application.Forms.FormDescriptorCache.GetFormDescriptor(Guid formId, IOrganizationContext context)
at Microsoft.Crm.Application.Platform.AppFormFilter.<GetFilteredFormListb__4(Guid formId)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Microsoft.Crm.Application.Controls.AppFormSelector.ConfigureHeader()
at Microsoft.Crm.Application.Components.UI.CrmUIControlBase.ConfigureControlInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
[2016-03-09 14:34:28.854] Process: w3wp |Organization:5f48a1a7-88df-e511-93f8-00155d50690f |Thread: 20 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | ErrorInformation.LogError ilOffset = 0x17
MSCRM Error Report:
--------------------------------------------------------------------------------------------------------
Error: Exception of type 'System.Web.HttpUnhandledException' was thrown.

Error Message: 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.

Error Details: Exception of type 'System.Web.HttpUnhandledException' was thrown.

Source File: Not available

Line Number: Not available

Request URL: d2devcrm10/.../layout.aspx;formid=16654191-19ad-48ca-9e46-c4b4fbdad76f&formts=3085142&hash=EA1390550CBFB3F9BE24FC68C3374613C730841943680D5FA152B67E73B4C7B9&isPreview=False&isTurboForm=False&outlook=False

Stack Trace Info: [NullReferenceException: Object reference not set to an instance of an object.]
at Microsoft.Crm.Application.CellDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab, Boolean isInFirstColumn, Boolean isInLastColumn)
at Microsoft.Crm.Application.CellCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
at Microsoft.Crm.Application.RowDescriptor..ctor(IXPathNavigable node, EntityMetadata entityMetadata, FormDescriptor formDescriptor, Boolean rowVisible, TabDescriptor containerTab)
at Microsoft.Crm.Application.RowCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, Int32 sectionColumns, TabDescriptor containerTab)
at Microsoft.Crm.Application.SectionCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
at Microsoft.Crm.Application.ColumnDescriptor..ctor(XmlNode columnNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
at Microsoft.Crm.Application.ColumnCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
at Microsoft.Crm.Application.TabDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor)
at Microsoft.Crm.Application.TabCollection..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor)
at Microsoft.Crm.Application.FormDescriptor.InitializeObjectModel(XmlNode formNode, EntityMetadata entityMetadata, FormType formType)
at Microsoft.Crm.Application.FormDescriptor.Initialize(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType)
at Microsoft.Crm.Application.FormDescriptor..ctor(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType, Boolean isUserForm, Boolean isActive, IOrganizationContext context)
at Microsoft.Crm.Application.FormDescriptor..ctor(Int32 typeCode, XmlNode formXml, Guid formId, FormType formType, Int64 versionNumber, FormPresentationMode formPresentation, Boolean isActive, IOrganizationContext context)
at Microsoft.Crm.Application.Forms.FormDescriptorLoader.LoadCacheData(FormDescriptorCacheKey key, IOrganizationContext context)
at Microsoft.Crm.Caching.CrmSharedMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.Application.Forms.FormDescriptorCache.GetFormDescriptor(Guid formId, IOrganizationContext context)
at Microsoft.Crm.Application.Platform.AppFormFilter.<GetFilteredFormListb__4(Guid formId)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Microsoft.Crm.Application.Controls.AppFormSelector.ConfigureHeader()
at Microsoft.Crm.Application.Components.UI.CrmUIControlBase.ConfigureControlInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

[HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.]
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

[2016-03-09 14:34:28.854] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | FaultHelper.ConvertToFault ilOffset = 0x0
TryConvertToFaultExceptionInternal: exception: System.Web.HttpUnhandledException
[2016-03-09 14:34:28.870] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | ExceptionConverter.DumpExceptionRecursive ilOffset = 0x294
NestingDepth: 24
[2016-03-09 14:34:28.870] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | ExceptionConverter.DumpExceptionToTrace ilOffset = 0x11
----- dump exception/fault tree (TryConvertToFaultExceptionInternal: before) -----
EXCEPTION: 0
Type: System.Web.HttpUnhandledException
Message (65): Exception of type 'System.Web.HttpUnhandledException' was thrown.
StackTrace (605):
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
<<<<< StackTrace:
no PluginTrace
EXCEPTION: 1
Type: System.NullReferenceException
Message (53): Object reference not set to an instance of an object.
StackTrace (4015):
at Microsoft.Crm.Application.CellDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab, Boolean isInFirstColumn, Boolean isInLastColumn)
at Microsoft.Crm.Application.CellCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
at Microsoft.Crm.Application.RowDescriptor..ctor(IXPathNavigable node, EntityMetadata entityMetadata, FormDescriptor formDescriptor, Boolean rowVisible, TabDescriptor containerTab)
at Microsoft.Crm.Application.RowCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, Int32 sectionColumns, TabDescriptor containerTab)
at Microsoft.Crm.Application.SectionCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
at Microsoft.Crm.Application.ColumnDescriptor..ctor(XmlNode columnNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
at Microsoft.Crm.Application.ColumnCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
at Microsoft.Crm.Application.TabDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor)
at Microsoft.Crm.Application.TabCollection..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor)
at Microsoft.Crm.Application.FormDescriptor.InitializeObjectModel(XmlNode formNode, EntityMetadata entityMetadata, FormType formType)
at Microsoft.Crm.Application.FormDescriptor.Initialize(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType)
at Microsoft.Crm.Application.FormDescriptor..ctor(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType, Boolean isUserForm, Boolean isActive, IOrganizationContext context)
at Microsoft.Crm.Application.FormDescriptor..ctor(Int32 typeCode, XmlNode formXml, Guid formId, FormType formType, Int64 versionNumber, FormPresentationMode formPresentation, Boolean isActive, IOrganizationContext context)
at Microsoft.Crm.Application.Forms.FormDescriptorLoader.LoadCacheData(FormDescriptorCacheKey key, IOrganizationContext context)
at Microsoft.Crm.Caching.CrmSharedMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.Application.Forms.FormDescriptorCache.GetFormDescriptor(Guid formId, IOrganizationContext context)
at Microsoft.Crm.Application.Platform.AppFormFilter.<GetFilteredFormListb__4(Guid formId)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Microsoft.Crm.Application.Controls.AppFormSelector.ConfigureHeader()
at Microsoft.Crm.Application.Components.UI.CrmUIControlBase.ConfigureControlInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
<<<<< StackTrace:
no PluginTrace
InnerException <null
<<<<< EXCEPTION: 1

[2016-03-09 14:34:28.870] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | ExceptionConverter.ConvertToFault ilOffset = 0x24
NestingDepth: 24
[2016-03-09 14:34:28.870] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | ExceptionConverter.ConvertToFault ilOffset = 0x57
ToSingleFaultUntyped: enter
[2016-03-09 14:34:28.870] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | ExceptionConverter.ToSingleFaultUnTyped ilOffset = 0x35
ToSingleFault/FE [2016-03-09 14:34:28.870] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | ExceptionConverter.ToSingleFaultUnTyped ilOffset = 0x3A
ToSingleFaultOther: enter
[2016-03-09 14:34:28.870] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | ExceptionConverter.ConvertMessageAndErrorCode ilOffset = 0x21
enter: ConvertMessageAndErrorCode: System.Web.HttpUnhandledException
[2016-03-09 14:34:28.870] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | ExceptionConverter.ConvertMessageAndErrorCode ilOffset = 0x221
System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #485A06D2: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. --- System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Crm.Application.CellDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab, Boolean isInFirstColumn, Boolean isInLastColumn)
at Microsoft.Crm.Application.CellCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
at Microsoft.Crm.Application.RowDescriptor..ctor(IXPathNavigable node, EntityMetadata entityMetadata, FormDescriptor formDescriptor, Boolean rowVisible, TabDescriptor containerTab)
at Microsoft.Crm.Application.RowCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, Int32 sectionColumns, TabDescriptor containerTab)
at Microsoft.Crm.Application.SectionCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
at Microsoft.Crm.Application.ColumnDescriptor..ctor(XmlNode columnNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
at Microsoft.Crm.Application.ColumnCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
at Microsoft.Crm.Application.TabDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor)
at Microsoft.Crm.Application.TabCollection..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor)
at Microsoft.Crm.Application.FormDescriptor.InitializeObjectModel(XmlNode formNode, EntityMetadata entityMetadata, FormType formType)
at Microsoft.Crm.Application.FormDescriptor.Initialize(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType)
at Microsoft.Crm.Application.FormDescriptor..ctor(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType, Boolean isUserForm, Boolean isActive, IOrganizationContext context)
at Microsoft.Crm.Application.FormDescriptor..ctor(Int32 typeCode, XmlNode formXml, Guid formId, FormType formType, Int64 versionNumber, FormPresentationMode formPresentation, Boolean isActive, IOrganizationContext context)
at Microsoft.Crm.Application.Forms.FormDescriptorLoader.LoadCacheData(FormDescriptorCacheKey key, IOrganizationContext context)
at Microsoft.Crm.Caching.CrmSharedMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.Application.Forms.FormDescriptorCache.GetFormDescriptor(Guid formId, IOrganizationContext context)
at Microsoft.Crm.Application.Platform.AppFormFilter.<GetFilteredFormListb__4(Guid formId)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Microsoft.Crm.Application.Controls.AppFormSelector.ConfigureHeader()
at Microsoft.Crm.Application.Components.UI.CrmUIControlBase.ConfigureControlInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
[2016-03-09 14:34:28.870] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | ExceptionConverter.ConvertMessageAndErrorCode ilOffset = 0x281
exit: ConvertMessageAndErrorCode: errorCode: 0x80040216; message: System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #485A06D2
[2016-03-09 14:34:28.886] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | ExceptionConverter.ToSingleFaultOther ilOffset = 0x2F
ToSingleFaultCommon: enter
[2016-03-09 14:34:28.886] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | ExceptionConverter.ToSingleFaultOther ilOffset = 0x2F
no PluginTrace
[2016-03-09 14:34:28.886] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | ExceptionConverter.ToSingleFaultOther ilOffset = 0x2F
no CrmExceptionFaults
[2016-03-09 14:34:28.886] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | ExceptionConverter.ToSingleFaultCommon ilOffset = 0x183
IncludeCallStack: True
[2016-03-09 14:34:28.886] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | ExceptionConverter.ConvertToFault ilOffset = 0x24
NestingDepth: 24
[2016-03-09 14:34:28.886] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | ExceptionConverter.ConvertToFault ilOffset = 0x69
ToSingleFaultUntyped: enter
[2016-03-09 14:34:28.886] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | ExceptionConverter.ToSingleFaultUnTyped ilOffset = 0x35
ToSingleFault/FE [2016-03-09 14:34:28.886] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | ExceptionConverter.ToSingleFaultUnTyped ilOffset = 0x3A
ToSingleFaultOther: enter
[2016-03-09 14:34:28.886] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 20 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 7833a3ca-d273-481c-a9fd-1802b2986666 | ExceptionConverter.ConvertMessageAndErrorCode ilOffset = 0x21
enter: ConvertMessageAndErrorCode: System.NullReferenceException

Solution

After check all javascript, disable all javascript,check permissions, etc.
I need to cut the story short but in essence it went – Google, Forums, Google, Coffee, Head scratch, Google.
I opened customization.xml and I searched the event “onload”:

<events>
                <event name="onload" application="true" active="true">
                  <InternalHandlers>
                    <Handler functionName="Mscrm.Form_onload" libraryName="Incident_main_system_library.js" handlerUniqueId="1b5e628c-097e-41dc-a6ab-51fadd5de253" enabled="false">
                      <dependencies>
                        <dependency id="contractid" />
                        <dependency id="contractdetailid" />
                      </dependencies>
                    </Handler>
                  </InternalHandlers>
                  <Handlers>
                    <Handler handlerUniqueId="{1dcd9e64-7711-3a2b-6b55-c66e3bd39a21}" functionName="Winvs.Next.InsuranceBroker.ClientScript._incident_form.onFormLoad" libraryName="winvs_Winvs_Next_Insurance_Broker_ClientScript" enabled="true" passExecutionContext="false" parameters="" />
                  </Handlers>
                </event>
                <event name="onchange" application="true" active="true" attribute="customerid">
                  <InternalHandlers>
                    <Handler functionName="Mscrm.customerid_onchange" libraryName="Incident_main_system_library.js" handlerUniqueId="d806cf5a-b111-40ee-a955-3261d2c7df9b" enabled="true">
                      <dependencies>
                        <dependency id="contractid" />
                        <dependency id="contractdetailid" />
                      </dependencies>
                    </Handler>
                  </InternalHandlers>

So I just changed the enabled=’True’ to false and saved the xml, re-zipped and imported the Solution – Bingo! it worked without error.

Now….. I’m not sure 100% what the story is here, but I have a feeling this is some throw back.

Lascia un commento

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...