Сообщение об ошибке WCF «Запрошенный счетчик производительности не является пользовательским счетчиком, он должен быть инициализирован как ReadOnly»

Я получил следующее сообщение об ошибке при вызове моей функции WCF

      The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly
at System.Diagnostics.PerformanceCounter.InitializeImpl()
   at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean readOnly)
   at Microsoft.Practices.EnterpriseLibrary.Common.Instrumentation.EnterpriseLibraryPerformanceCounterFactory.CreateCounter(String categoryName, String counterName, String[] instanceNames)
   at Microsoft.Practices.EnterpriseLibrary.PolicyInjection.CallHandlers.PerformanceCounterCallHandler.Invoke(IMethodInvocation input, GetNextHandlerDelegate getNext)
   at Example.SoaPlatform.LoggingService.Client.LogTraceCallHandler.Invoke(IMethodInvocation input, GetNextHandlerDelegate getNext)
   at Microsoft.Practices.Unity.InterceptionExtension.HandlerPipeline.Invoke(IMethodInvocation input, InvokeHandlerDelegate target)
   at Microsoft.Practices.Unity.InterceptionExtension.InterceptingRealProxy.Invoke(IMessage msg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Example.Mobiliti.MobilitiAlertService.ContractTypes.IMobilitiAlertService.SendSMSAlert(SendSmsAlertRequest request)
   at SyncInvokeSendSMSAlert(Object , Object[] , Object[] )
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</StackTrace> 

Я выполнил следующие команды, но проблема еще не решена.

      lodctr /R
cd C:\Windows\Inf\.NETFramework
lodctr corperfmonsymbols.ini

Версия Enterprise Library — 4.1.0, я проверил через свойства файла

0 ответов

Другие вопросы по тегам