启动时出现Microsoft Dynamics 2011异步服务错误

时间:2014-08-28 08:48:19

标签: dynamics-crm-2011 dynamics-crm tracing

我有一个工作正常的Microsoft Dynamics安装。但是,我注意到即使它运行正常,每当启动CRM异步服务时,都会向事件日志写入两个错误:

CrmTrace encountered an error. Additional Info:Error in LoadSiteWideSettings [LocatorService.Instance], Stack Trace : at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at Microsoft.Crm.CrmTraceSettings.Load(String traceDirectory) at Microsoft.Crm.CrmTrace.get_RefreshTrace() at Microsoft.Crm.CrmTrace.Write(Guid orgId, TraceCategory traceCategory, TraceLevel traceLevel, Int32 skipFrames, String format, Object[] args) at Microsoft.Crm.CrmTrace.TraceFormat(Guid orgId, TraceCategory traceCategory, TraceLevel traceLevel, String format, Object[] args) at Microsoft.Crm.LocatorCache..ctor(LocatorServiceContext locatorServiceContext) at Microsoft.Crm.ServerLocatorService..ctor(LocatorServiceContext locatorServiceContext) at Microsoft.Crm.LocatorService..ctor(ILocatorService service, LocatorServiceContext locatorServiceContext) at Microsoft.Crm.LocatorService..cctor() at Microsoft.Crm.LocatorService.get_Instance() at Microsoft.Crm.FeatureControlChecker..ctor() at Microsoft.Crm.FeatureControlChecker..cctor() at Microsoft.Crm.Asynchronous.AsyncService..ctor(String instanceName, AsyncServiceContext context) at Microsoft.Crm.Asynchronous.AsyncService.Main(String[] args) (Reporting Process:CrmAsyncService, AppDomain:D:\PROGRA~2\MICROS~1\Server\bin\)

CrmTrace encountered an error. Additional Info:Error in LoadDeploymentSettings [LocatorService.Instance], Stack Trace : at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at Microsoft.Crm.CrmTraceSettings.Load(String traceDirectory) at Microsoft.Crm.CrmTrace.get_RefreshTrace() at Microsoft.Crm.CrmTrace.Write(Guid orgId, TraceCategory traceCategory, TraceLevel traceLevel, Int32 skipFrames, String format, Object[] args) at Microsoft.Crm.CrmTrace.TraceFormat(Guid orgId, TraceCategory traceCategory, TraceLevel traceLevel, String format, Object[] args) at Microsoft.Crm.LocatorCache..ctor(LocatorServiceContext locatorServiceContext) at Microsoft.Crm.ServerLocatorService..ctor(LocatorServiceContext locatorServiceContext) at Microsoft.Crm.LocatorService..ctor(ILocatorService service, LocatorServiceContext locatorServiceContext) at Microsoft.Crm.LocatorService..cctor() at Microsoft.Crm.LocatorService.get_Instance() at Microsoft.Crm.FeatureControlChecker..ctor() at Microsoft.Crm.FeatureControlChecker..cctor() at Microsoft.Crm.Asynchronous.AsyncService..ctor(String instanceName, AsyncServiceContext context) at Microsoft.Crm.Asynchronous.AsyncService.Main(String[] args) (Reporting Process:CrmAsyncService, AppDomain:D:\PROGRA~2\MICROS~1\Server\bin\)

每次CRM异步服务(重新)启动时都会发生这些错误。

要找出此错误的原因,我打开了跟踪并重新启动了CRM异步服务。在CRM异步服务的跟踪文件中,跟踪以以下行开头:

# CRM Tracing Version 2.0
# LocalTime: 2014-08-28 09:43:21.677
# Categories: *:Verbose
# CallStackOn: No
# ComputerName: KORTRIJK
# CRMVersion: 5.0.9900.1060
# DeploymentType: System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.Crm.CrmTrace.FormatHeader(DateTime entryTime, CrmTraceSettings localSettings)

CRM异步服务似乎无法确定部署类型。奇怪的是,同一台机器上的w3wp跟踪可以确定部署类型。

# CRM Tracing Version 2.0
# LocalTime: 2014-08-28 09:36:01.280
# Categories: *:Verbose
# CallStackOn: No
# ComputerName: KORTRIJK
# CRMVersion: 5.0.9900.1060
# DeploymentType: OnPremise
# ScaleGroup: 
# ServerRole: AppServer, AsyncService, DiscoveryService, ApiServer, HelpServer, DeploymentService, SandboxServer, DeploymentManagementTools

如何解决此问题?

0 个答案:

没有答案