Dynamics CRM Support Blog
Problems configuring the CRM Outlook client? Use the wizard!
CRM Resource Center
FAQ About Technical SupportOnline | On-Premise
FAQ About Billing
Implementation Guide
Microsoft Dynamics CRM Developer Center and SDK
Hello!
We have some troubles since the installation of UR12 in CRM 2011. Workflows and Dialogs will not run and button "Download Log File" button in an error message is inactive!?CRMAsyncService in Tracelog
>Crm Exception: Message: , ErrorCode: -2147220970[2013-02-25 12:43:51.358] Process:CrmAsyncService |Organization:00000000-0000-0000-0000-000000000000 |Thread: 7 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: de902d31-f493-4109-b227-2fa53f467b00 | CrmException..ctor ilOffset = 0x0 at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException) ilOffset = 0x0 at CrmException..ctor(String message, Exception innerException, Int32 errorCode) ilOffset = 0x0 at WorkflowToAsyncResultConverter.Convert() ilOffset = 0x9D at WorkflowContext.EndProcessing(IGenericHandlerResult result) ilOffset = 0xC at ActivityHostBase.StartWorkflow(ICommonWorkflowContext context, Activity preLoadedActivity) ilOffset = 0xA at ActivityHostBase.StartWorkflow(ICommonWorkflowContext context) ilOffset = 0x8E at WorkflowOperation.InternalExecute(AsyncEvent asyncEvent) ilOffset = 0x44 at AsyncOperationCommand.Execute(AsyncEvent asyncEvent) ilOffset = 0x4E at PoolHandler.ProcessAsyncEvent(IGenericEventData eventData) ilOffset = 0x139 at <>c__DisplayClass4.<.ctor>b__2(IServiceOperation operation) ilOffset = 0x0 at FaultToleranceBehavior.Execute(ServiceOperationAction operation, IServiceOperation operationParameter) ilOffset = 0x18 at MonitoredOperation.Execute() ilOffset = 0xD at ThreadPoolQueueExecutionEngine.InvokeNextOperationInThreadPool(Object state) ilOffset = 0xC at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) ilOffset = 0x71 at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() ilOffset = 0x23 at ThreadPoolWorkQueue.Dispatch() ilOffset = 0x81 at _ThreadPoolWaitCallback.PerformWaitCallback() ilOffset = 0x51
And then...
>Crm Exception: Message: Invalid type conversion., ErrorCode: -2147220715,InnerException: System.MissingMethodException: Method not found: 'Void Microsoft.Xrm.Sdk.BaseServiceFault.set_InnerServiceFault(Microsoft.Xrm.Sdk.BaseServiceFault)'. at Microsoft.Crm.ExceptionConverter.ConvertToFault(Exception exception) at Microsoft.Crm.ExceptionConverter.TryConvertToFaultExceptionInternal(Exception exception, Boolean createNewFaultException, FaultException`1& faultException) at Microsoft.Crm.Asynchronous.AsyncHandlerResultWithError.CopyExceptionDetails(Exception ex, Int32 defaultErrorCode) at Microsoft.Crm.Workflow.WorkflowToAsyncResultConverter.Convert(WorkflowSystemPausedResult wfResult) at Microsoft.Crm.Workflow.WorkflowToAsyncResultConverter.Convert()[2013-02-25 12:43:51.358] Process:CrmAsyncService |Organization:f8f30bfc-fe6f-e011-926a-005056902738 |Thread: 7 |Category: Platform.Async |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: de902d31-f493-4109-b227-2fa53f467b00 | AsyncOperationCommand.Execute ilOffset = 0x4E at AsyncOperationCommand.Execute(AsyncEvent asyncEvent) ilOffset = 0x4E at PoolHandler.ProcessAsyncEvent(IGenericEventData eventData) ilOffset = 0x139 at <>c__DisplayClass4.<.ctor>b__2(IServiceOperation operation) ilOffset = 0x0 at FaultToleranceBehavior.Execute(ServiceOperationAction operation, IServiceOperation operationParameter) ilOffset = 0x18 at MonitoredOperation.Execute() ilOffset = 0xD at ThreadPoolQueueExecutionEngine.InvokeNextOperationInThreadPool(Object state) ilOffset = 0xC at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) ilOffset = 0x71 at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() ilOffset = 0x23 at ThreadPoolWorkQueue.Dispatch() ilOffset = 0x81 at _ThreadPoolWaitCallback.PerformWaitCallback() ilOffset = 0x51>Exception while trying to execute AsyncOperationId: {3B480604-BA7C-E211-96D3-005056A2004D} AsyncOperationType: 10 - Microsoft.Crm.CrmNotSupportedException: Invalid type conversion. ---> System.MissingMethodException: Method not found: 'Void Microsoft.Xrm.Sdk.BaseServiceFault.set_InnerServiceFault(Microsoft.Xrm.Sdk.BaseServiceFault)'. at Microsoft.Crm.ExceptionConverter.ConvertToFault(Exception exception) at Microsoft.Crm.ExceptionConverter.TryConvertToFaultExceptionInternal(Exception exception, Boolean createNewFaultException, FaultException`1& faultException) at Microsoft.Crm.Asynchronous.AsyncHandlerResultWithError.CopyExceptionDetails(Exception ex, Int32 defaultErrorCode) at Microsoft.Crm.Workflow.WorkflowToAsyncResultConverter.Convert(WorkflowSystemPausedResult wfResult) at Microsoft.Crm.Workflow.WorkflowToAsyncResultConverter.Convert()
and..
>MessageProcessor fail to process message 'RetrieveMultiple' for 'workflowdependency'.[2013-02-25 12:31:19.160] Process:CrmAsyncService |Organization:f8f30bfc-fe6f-e011-926a-005056902738 |Thread: 18 |Category: Platform |User: 7cef8412-ff6f-e011-926a-005056902738 |Level: Error |ReqId: 093d7790-508e-4bd9-bf4f-931cbd665b50 | MessageProcessor.Execute ilOffset = 0x1C5 at MessageProcessor.Execute(PipelineExecutionContext context) ilOffset = 0x1C5 at InternalMessageDispatcher.Execute(PipelineExecutionContext context) ilOffset = 0xE4 at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion) ilOffset = 0x156 at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, Boolean traceRequest, OrganizationContext context, Boolean returnResponse) ilOffset = 0x145 at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType) ilOffset = 0x34 at OrganizationSdkServiceInternal.RetrieveMultiple(QueryBase query, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType) ilOffset = 0x2D at InprocessServiceProxy.RetrieveMultipleCore(QueryBase query) ilOffset = 0x26 at WorkflowContextBase.get_EntityDependencies() ilOffset = 0x1A at WorkflowContextBase.RetrieveEntityInstances() ilOffset = 0x9 at ActivityHost.StartWorkflowExecution(Activity workflow, ICommonWorkflowContext context) ilOffset = 0x137 at ActivityHostBase.StartWorkflow(ICommonWorkflowContext context, Activity preLoadedActivity) ilOffset = 0xA at ActivityHostBase.StartWorkflow(ICommonWorkflowContext context) ilOffset = 0x8E at WorkflowOperation.InternalExecute(AsyncEvent asyncEvent) ilOffset = 0x44 at AsyncOperationCommand.Execute(AsyncEvent asyncEvent) ilOffset = 0x4E at PoolHandler.ProcessAsyncEvent(IGenericEventData eventData) ilOffset = 0x139 at <>c__DisplayClass4.<.ctor>b__2(IServiceOperation operation) ilOffset = 0x0 at FaultToleranceBehavior.Execute(ServiceOperationAction operation, IServiceOperation operationParameter) ilOffset = 0x18 at MonitoredOperation.Execute() ilOffset = 0xD at ThreadPoolQueueExecutionEngine.InvokeNextOperationInThreadPool(Object state) ilOffset = 0xC at ExecutionContext.runTryCode(Object userData) ilOffset = 0x18 at RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) ilOffset = 0xFFFFFFFF at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) ilOffset = 0x86 at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() ilOffset = 0x23 at ThreadPoolWorkQueue.Dispatch() ilOffset = 0x81 at _ThreadPoolWaitCallback.PerformWaitCallback() ilOffset = 0x51
The Asynchronous Processing Service is running but we have two suspicious errors in Windows-Eventlog:
Source: MSCRMAsyncService:HostXXX: failed while monitoring asynchronous operations queue. Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Crm.Asynchronous.QueueManager.UpdateEventState(AsyncEvent asyncEvent, AsyncHandlerResult result) at Microsoft.Crm.Asynchronous.PoolHandler.ProcessAsyncEvent(IGenericEventData eventData) at Microsoft.Crm.Asynchronous.Operations.AsyncEventOperation.<>c__DisplayClass4.<.ctor>b__2(IServiceOperation operation) at Microsoft.Crm.Behaviors.FaultToleranceBehavior.Execute(ServiceOperationAction operation, IServiceOperation operationParameter) at Microsoft.Crm.Operations.MonitoredOperation.Execute() at Microsoft.Crm.Asynchronous.ThreadPoolQueueExecutionEngine.InvokeNextOperationInThreadPool(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
And a second Error: Source: MSCRMWebService:
The Web Service plug-in failed in OrganizationId: f8f30bfc-fe6f-e011-926a-005056902738; SdkMessageProcessingStepId: 75ccbb1b-ea3e-db11-86a7-000a3a5473e8; EntityName: workflowdependency; Stage: 30; MessageName: RetrieveMultiple; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.MissingMethodException: Method not found: 'System.Nullable`1<Int32> Microsoft.Xrm.Sdk.Query.QueryByAttribute.get_TopCount()'. at Microsoft.Crm.Query.EntityExpression.FromSdkQueryVisitor.Visit(QueryByAttribute query) at Microsoft.Crm.Query.EntityExpression.InitializeFromQuery(QueryBase query) at Microsoft.Crm.Query.EntityExpression.Converter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) at Microsoft.Crm.BusinessEntities.ConversionHelpers.Convert(ICrmConversionContext conversionContext, Object source, Type destinationType) at Microsoft.Crm.Extensibility.DictionaryMapper.Map(ParameterCollection inputs, ICrmConversionContext context) at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider) at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context) at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context).
Anyone with the same problem here?
Many Thanks!
Best Regards,Benjamin
Hello Gus,
i resolved the problem today :)
I was sure, that the problems cause from an old Microsoft.Xrm.Sdk.dll.
So i found a version, which was not up to date after RU12 installation - In .net GAC:
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.Xrm.Sdk\v4.0_5.0.0.0\Microsoft.Xrm.Sdk.dll
How to resolve the Problem:
1. Stop Asynchronous Processing Service (And helper Service)
2. Save the .dll in the folder
3. Replace it with Microsoft.Xrm.Sdk.dll from C:\<Path to CRM>\Server\bin
4. iisreset
5. Start the services
Now, everything works fine!
Thank you for your help!
Best Regards,
Benjamin
Benjamin,
Is this happening for all workflows or custom workflows?
hmm, can you give me an expample for another workflow than custom?
Custom Workflows and Dialogs fail.
Can you create a simple workflow and see if it runs?
For example, a workflow that sends an email when a lead is created or something like that.