企业语义记录OOP异常

时间:2015-02-28 11:05:48

标签: c# .net logging enterprise-library

我正在尝试使用语义记录应用程序块来使用Out-Process Logging。我已经从here下载并安装了进程外服务,将事件源名称更改为指向我的源名称。但是在运行服务时我得到以下错误:

Message : A fault was detected while processing the configuration for the element 'svcRuntime'. Message: System.Runtime.InteropServices.COMException (0x800705AA): Insufficient system resources exist to
 complete the requested service. (Exception from HRESULT: 0x800705AA)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.Diagnostics.Tracing.Session.TraceEventSession.InsureStarted(EVENT_TRACE_PROPERTIES* properties)
   at Microsoft.Diagnostics.Tracing.Session.TraceEventSession.EnableProvider(Guid providerGuid, TraceEventLevel providerLevel, UInt64 matchAnyKeywords, TraceEventProviderOptions options)
   at Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Etw.Utility.TraceEventUtil.EnableProvider(TraceEventSession session, Guid providerId, EventLevel level, EventKeywords matchAnyKeyword, IEnume
rable`1 arguments, IEnumerable`1 processNamesToFilter, Boolean sendManifest)
   at Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Etw.TraceEventServiceWorker.Initialize()
   at Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Etw.TraceEventService.<>c__DisplayClass6.<AddWorkers>b__2()
   at Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Etw.TraceEventService.HandleException(String callerName, Action body)
Opcode : Info
Task : 64731
Version : 0
Payload : [faultedElement : svcRuntime] [message : System.Runtime.InteropServices.COMException (0x800705AA): Insufficient system resources exist to complete the requested service. (Exception from HRESU
LT: 0x800705AA)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.Diagnostics.Tracing.Session.TraceEventSession.InsureStarted(EVENT_TRACE_PROPERTIES* properties)
   at Microsoft.Diagnostics.Tracing.Session.TraceEventSession.EnableProvider(Guid providerGuid, TraceEventLevel providerLevel, UInt64 matchAnyKeywords, TraceEventProviderOptions options)
   at Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Etw.Utility.TraceEventUtil.EnableProvider(TraceEventSession session, Guid providerId, EventLevel level, EventKeywords matchAnyKeyword, IEnume
rable`1 arguments, IEnumerable`1 processNamesToFilter, Boolean sendManifest)
   at Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Etw.TraceEventServiceWorker.Initialize()
   at Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Etw.TraceEventService.<>c__DisplayClass6.<AddWorkers>b__2()
   at Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Etw.TraceEventService.HandleException(String callerName, Action body)]
EventName : TraceEventServiceConfigurationFaultInfo
Timestamp : 2015-02-28T10:31:09.3220291Z
ProcessId : 16524
ThreadId : 16984

In-Process监听器工作正常。还有什么我需要配置吗?

1 个答案:

答案 0 :(得分:0)

在我的情况下,它与我在SemanticLogging-svc.xml中配置的平面文件接收器的数量有关。

似乎一旦我超过36个文件接收器,就会出现此错误。

相关问题