Microsoft Dynamics CRM异步处理服务无法正常工作(可能)

时间:2014-11-28 11:00:01

标签: dynamics-crm-2011 workflow asynchronous

我们的开发CRM服务器现在出现了多个问题。起初,由于一些模糊的错误(无法解析XAML),我无法导入解决方案。一个过去没有改变过的解决方案。

接下来,我无法使用插件注册工具连接到服务器。对服务器上的任何组织都不。

接下来我注意到我们无法打开任何工作流程。

基于以上几点,我们得出的结论是服务器问题,而不是组织问题。事实证明,创建一个空白组织会立即遇到同样的问题。

我们认为我们已将其缩小到CRM异步处理服务无法正常工作。它已经开始,但它似乎不再做任何事了。重新启动服务器并重新启动IIS没有做任何事情。

在事件日志中,我在尝试编辑工作流程后找到以下条目:

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 28/11/2014 11:23:13 
Event time (UTC): 28/11/2014 10:23:13 
Event ID: 281d2875de2f43cf95ca6820a6d58f5c 
Event sequence: 1801 
Event occurrence: 6 
Event detail code: 0 

Application information: 
Application domain: /LM/W3SVC/1/ROOT-1-130616421223647071 
Trust level: Full 
Application Virtual Path: / 
Application Path: d:\Program Files\Microsoft Dynamics CRM\CRMWeb\ 
Machine name: ************

Process information: 
Process ID: 5348 
Process name: w3wp.exe 
Account name: ************* 

Exception information: 
Exception type: CrmException 
Exception message: Error generating UiData
at Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.GenerateUIData()
at Microsoft.Crm.Application.Platform.WorkflowLibrary.WorkflowAdapter.CreateWorkflowObjectModel(Guid workflowEntityId, Boolean useSystemUserContext)
at Microsoft.Crm.Web.Sfa.WorkflowDetailPage.GetWorkflowStep()
at Microsoft.Crm.Web.Sfa.WorkflowDetailPage.ConfigureForm()
at Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Error deserializing XAML
at Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.DeserializeXaml(String xaml)
at Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.GenerateUIData()

Failed to create a 'Settings' from the text 'Assembly references and imported namespaces for internal implementation'.
at System.Xaml.XamlObjectWriter.Logic_CreateFromValue(ObjectWriterContext ctx, XamlValueConverter`1 typeConverter, Object value, XamlMember property, String targetName, IAddLineInfo lineInfo)
at System.Xaml.XamlObjectWriter.Logic_CreateFromValue(ObjectWriterContext ctx, XamlValueConverter`1 typeConverter, Object value, XamlMember property, String targetName)
at System.Xaml.XamlObjectWriter.Logic_CreatePropertyValueFromValue(ObjectWriterContext ctx)
at System.Xaml.XamlObjectWriter.WriteEndMember()
at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
at System.Xaml.XamlServices.Load(XamlReader xamlReader)
at System.Activities.XamlIntegration.ActivityXamlServices.Load(XamlReader xamlReader)
at Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.DeserializeXaml(String xaml)

Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
at System.Reflection.CustomAttribute.IsCustomAttributeDefined(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable)
at System.Reflection.CustomAttribute.IsDefined(RuntimeAssembly assembly, RuntimeType caType)
at Microsoft.VisualBasic.Activities.XamlIntegration.VisualBasicExpressionConverter.AssemblyCache.EnsureInitialized()
at Microsoft.VisualBasic.Activities.XamlIntegration.VisualBasicExpressionConverter.WrapCachedMapping(NamespaceDeclaration prefix, ReadOnlyXmlnsMapping& readOnlyMapping)
at Microsoft.VisualBasic.Activities.XamlIntegration.VisualBasicExpressionConverter.CollectXmlNamespacesAndAssemblies(ITypeDescriptorContext context)
at Microsoft.VisualBasic.Activities.XamlIntegration.VisualBasicSettingsConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateObjectWithTypeConverter(ServiceProviderContext serviceContext, XamlValueConverter`1 ts, Object value)
at System.Xaml.XamlObjectWriter.Logic_CreateFromValue(ObjectWriterContext ctx, XamlValueConverter`1 typeConverter, Object value, XamlMember property, String targetName, IAddLineInfo lineInfo)



Request information: 
Request URL: https://*************/*********Development/sfa/workflow/edit.aspx?id={936C2198-4B0B-4A2A-A667-5F9B5D1B9845} 
Request path: /*********Development/sfa/workflow/edit.aspx 
User host address: 10.32.100.12 
User: *************
Is authenticated: True 
Authentication Type: NTLM 
Thread account name: ****************

Thread information: 
Thread ID: 53 
Thread account name: **************
Is impersonating: False 
Stack trace: at Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.GenerateUIData()
at Microsoft.Crm.Application.Platform.WorkflowLibrary.WorkflowAdapter.CreateWorkflowObjectModel(Guid workflowEntityId, Boolean useSystemUserContext)
at Microsoft.Crm.Web.Sfa.WorkflowDetailPage.GetWorkflowStep()
at Microsoft.Crm.Web.Sfa.WorkflowDetailPage.ConfigureForm()
at Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Custom event details: 

编辑:我们已尝试重新安装后端服务以及前端。都没有提供解决方案

1 个答案:

答案 0 :(得分:1)

我们已经在我们的生产环境中看到了这种情况,经过无休止的调试会话并尝试了最后修复只是为了重新安装Dynamics CRM(并且,为了更好地衡量,我们还重新安装了.NET框架,不知道是否需要,但你去了)。

一小时后,我们的客户经理和销售人员可以再次工作,我们可以像以前一样通过插件注册工具将我们的产品推向生产。

我们从来没有发现导致安装腐败的原因:(幸运的是它没有再发生。

HTH,bovako