After the installation of UR 12 my CRM 2011 deployment no longer worked. I am receiving the message below:
An error has occurred.
Try this action again. If the problem
continues, check the Microsoft Dynamics CRM Community for solutions or contact
your organization's Microsoft Dynamics CRM Administrator. Finally, you can
contact Microsoft Support.
System.NullReferenceException: Object
reference not set to an instance of an object. at
Microsoft.Crm.MainApplication.Application_Error(Object sender, EventArgs
eventArguments)
After turning on tracing I found an exception being thrown every time I try to load a crm page, Could not load type 'Microsoft.Crm.CrmPerformanceCounterFactory'. I double checked that Microsoft.CRM v 5.0.0.0 was not in C:\Windows\assembly, there were no entries for Microsoft.CRM. I have installed every UR sequentially. I have NO idea what could be causing this and am now rolling back to UR 11
Here is a copy of the full tracing:
# CRM Tracing Version 2.0
# LocalTime: 2013-02-05 20:18:12.494
# Categories: *:Verbose
# CallStackOn: No
# ComputerName: CRM2011
# CRMVersion: 5.0.9900.1010
# DeploymentType: OnPremise
# ScaleGroup:
# ServerRole: AppServer, AsyncService, DiscoveryService, ApiServer, HelpServer, DeploymentService, SandboxServer, DeploymentManagementTools
[2013-02-05 20:18:12.494] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | MapOrgUtility.SetOrganizationInformation ilOffset = 0x83
>MapOrgEngine: Retreived the OrgId[{193A2E1C-B6FD-DE11-AAED-001DD8B71C1A}] for URL[http://crm2011/cms/main.aspx].
[2013-02-05 20:18:12.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | MainApplication.Initialize ilOffset = 0x2E
>Exception occurred in Application_OnBeginRequest: System.TypeLoadException: Could not load type 'Microsoft.Crm.CrmPerformanceCounterFactory' from assembly 'Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
at Microsoft.Crm.WebServices.ImportXmlService.InitializePerformanceCounters()
at Microsoft.Crm.ServerPerformanceCounterInitializer.Microsoft.Crm.IApplicationInitializer.Initialize()
at Microsoft.Crm.RunInitializerTracker.TryRun(Type typeOfInitializer, RunInitializerDelegate RunInitializerDelegate)
at Microsoft.Crm.ApplicationInitializer.Microsoft.Crm.IApplicationInitializer.Initialize()
at Microsoft.Crm.MainApplication.Initialize(String nameCallerMethod)
[2013-02-05 20:18:12.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | ErrorInformation.LogError ilOffset = 0x17
>MSCRM Error Report:
--------------------------------------------------------------------------------------------------------
Error: Could not load type 'Microsoft.Crm.CrmPerformanceCounterFactory' from assembly 'Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Error Message: Could not load type 'Microsoft.Crm.CrmPerformanceCounterFactory' from assembly 'Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Source File: Not available
Line Number: Not available
Request URL: http://crm2011/cms/main.aspx
Stack Trace Info: [TypeLoadException: Could not load type 'Microsoft.Crm.CrmPerformanceCounterFactory' from assembly 'Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.]
at Microsoft.Crm.WebServices.ImportXmlService.InitializePerformanceCounters()
at Microsoft.Crm.ServerPerformanceCounterInitializer.Microsoft.Crm.IApplicationInitializer.Initialize()
at Microsoft.Crm.RunInitializerTracker.TryRun(Type typeOfInitializer, RunInitializerDelegate RunInitializerDelegate)
at Microsoft.Crm.ApplicationInitializer.Microsoft.Crm.IApplicationInitializer.Initialize()
at Microsoft.Crm.MainApplication.Initialize(String nameCallerMethod)
at Microsoft.Crm.MainApplication.Application_OnBeginRequest(Object sender, EventArgs eventArguments)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
[2013-02-05 20:18:12.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | FaultHelper.ConvertToFault ilOffset = 0x0
>TryConvertToFaultExceptionInternal: exception: System.TypeLoadException
[2013-02-05 20:18:12.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | ExceptionConverter.DumpExceptionToTrace ilOffset = 0x11
>----- dump exception/fault tree (TryConvertToFaultExceptionInternal: before) -----
>>>>>> EXCEPTION: 0
>Type: System.TypeLoadException
>Message (162): Could not load type 'Microsoft.Crm.CrmPerformanceCounterFactory' from assembly 'Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
>StackTrace: present: 1EE284F4
>no PluginTrace
>InnerException <null>
><<<<< EXCEPTION: 0
>
[2013-02-05 20:18:12.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | ExceptionConverter.ConvertToFault ilOffset = 0x24
>NestingDepth: 24
[2013-02-05 20:18:12.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | ExceptionConverter.ConvertToFault ilOffset = 0x57
>ToSingleFaultUntyped: enter
[2013-02-05 20:18:12.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | ExceptionConverter.ToSingleFaultUnTyped ilOffset = 0x0
>ToSingleFault/FE<OSF>: enter
[2013-02-05 20:18:12.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | ExceptionConverter.ConvertToFault ilOffset = 0x57
>UNEXPECTED: no fault?
[2013-02-05 20:18:12.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | ExceptionConverter.ToSingleFaultUnTyped ilOffset = 0x3A
>ToSingleFaultOther: enter
[2013-02-05 20:18:12.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | ExceptionConverter.ConvertMessageAndErrorCode ilOffset = 0x46
>enter: ConvertMessageAndErrorCode: System.TypeLoadException: Could not load type 'Microsoft.Crm.CrmPerformanceCounterFactory' from assembly 'Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
[2013-02-05 20:18:12.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | ExceptionConverter.ConvertMessageAndErrorCode ilOffset = 0x23B
>System.TypeLoadException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #284AB452: System.TypeLoadException: Could not load type 'Microsoft.Crm.CrmPerformanceCounterFactory' from assembly 'Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
> at Microsoft.Crm.WebServices.ImportXmlService.InitializePerformanceCounters()
> at Microsoft.Crm.ServerPerformanceCounterInitializer.Microsoft.Crm.IApplicationInitializer.Initialize()
> at Microsoft.Crm.RunInitializerTracker.TryRun(Type typeOfInitializer, RunInitializerDelegate RunInitializerDelegate)
> at Microsoft.Crm.ApplicationInitializer.Microsoft.Crm.IApplicationInitializer.Initialize()
> at Microsoft.Crm.MainApplication.Initialize(String nameCallerMethod)
> at Microsoft.Crm.MainApplication.Application_OnBeginRequest(Object sender, EventArgs eventArguments)
> at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
> at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
[2013-02-05 20:18:12.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | ExceptionConverter.ConvertMessageAndErrorCode ilOffset = 0x28B
>exit: ConvertMessageAndErrorCode: errorCode: 0x80040216; message: System.TypeLoadException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #284AB452
[2013-02-05 20:18:12.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | ExceptionConverter.ToSingleFaultCommon ilOffset = 0x16
>ToSingleFaultCommon: enter
[2013-02-05 20:18:12.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | ExceptionConverter.ToSingleFaultCommon ilOffset = 0xAE
>no PluginTrace
[2013-02-05 20:18:12.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | ExceptionConverter.ToSingleFaultCommon ilOffset = 0x12F
>no CrmExceptionFaults
[2013-02-05 20:18:12.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | ExceptionConverter.ToSingleFaultCommon ilOffset = 0x183
>IncludeCallStack: True
[2013-02-05 20:18:12.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | ExceptionConverter.TryConvertToFaultExceptionInternal ilOffset = 0xAD
>TryConvertToFaultExceptionInternal: new FE<OSF>
[2013-02-05 20:18:12.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | ExceptionConverter.DumpExceptionToTrace ilOffset = 0x11
>----- dump exception/fault tree (TryConvertToFaultExceptionInternal: after) -----
>>>>>> EXCEPTION: 0
>Type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.BaseServiceFault]
>Message (132): System.TypeLoadException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #284AB452
>StackTrace <null>
>no PluginTrace
>>>>>> FAULT: 0
>ErrorCode: 0x80040216: ErrorCodes.UnExpected
>Message (132): System.TypeLoadException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #284AB452
>Timestamp: present
>TraceText <null>
>CallStack: present: 1EE284F4
>InnerFault <null>
><<<<< FAULT: 0
>InnerException <null>
><<<<< EXCEPTION: 0
>
[2013-02-05 20:18:12.510] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 5e61b532-3b73-495a-9f2c-5fa29dea3a4f | MainApplication.Application_Error ilOffset = 0x58E
>Application is not initialized and an error has occurred