enterprise library - Please help! unable to add performance counters - 'Add' button is disabled -


I made counter functionality using following Entlib 4.1 I when I open Performon.exe and add counters - I perform I can see the list of objects I have made and counters. However I can not add them because the add button is disabled. Any suggestions

  public class program {static void key (string [] args) {Console.WriteLine ("You are about to set display counter"); InstallPerformaceCounters (); Console.ReadLine (); (I% 3 == 2) {Thread sleep (100);} If (i% 5 == 2) {Thread.Sleep} for (Int i = 0; i & lt; 100000; i ++) (1000);} display Search (i);} console. Reedlain ();} private static void PerformSearch (int i) {Console.WriteLine (i);} private static void InstallPerformaceCounters () {try {PerformanceCountersInstaller founder = new PerformanceCountersInstaller (new SystemConfigurationSource ()); IDictionary state = new system. resolution. Hastebl (); InstallerkContext = new InstallContext (); InstallerkInstall (state); InstallerkCommit (state); Kansolkprkash line ( "performance counter Have been successfully installed. ");} Puck (Exception preceding) {East;}}}  

////

App.config

  & lt ;? Xml version = "1.0" encoding = "utf-8" & gt; & LT; configuration & gt; & LT; configSections & gt; & LT; section name = "policyInjection" type = "Microsoft.Practices.EnterpriseLibrary.PolicyInjection. Configuration.PolicyInjectionSettings, Microsoft.Practices.EnterpriseLibrary.PolicyInjection, version = 4.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 "/ & gt; & Lt; Section name = "data configuration" type = "Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, version = 4.1.0.0, culture = neutral, public keypoint = 31bf3856ad364e35" /> & Lt; Section name = "instrumentationConfiguration" type = "Microsoft.Practices.EnterpriseLibrary.Common.Instrumentation.Configuration.InstrumentationConfigurationSection, Microsoft.Practices.EnterpriseLibrary.Common, Version = 4.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35" / & gt; & Lt; / ConfigSections & gt; & Lt; PolicyInjection & gt; & Lt; Policies & gt; & Lt; Add name = "search" & gt; & Lt; Operators & gt; & Lt; categoryname = InstanceName = "default" useTotalCounter = "false" incrementNumberOfCalls = "true" incrementCallsPerSecond = "true" incrementAverageCallDuration = "true" incrementTotalExceptions = "true" incrementExceptionsPerSecond = "true" type = "Microsoft" performance counter Search Add ". Practices. EnterpriseLibrary.PolicyInjection.CallHandlers.PerformanceCounterCallHandler, Microsoft.Practices.EnterpriseLibrary.PolicyInjection.CallHandlers, version = 4.1.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35 "name =" performance counter handler "/ & gt; & Lt; / Operators & gt; & Lt; / Add & gt; & Lt; / Policies & gt; & Lt; / PolicyInjection & gt; & Lt; Instrumenttioncofigursn Prformansesoँtersenbled = "true" Iventloginganbled = "false" Wmienbled = "false" Applictioninstankenme = "" / & gt; & Lt; / Configuration & gt;  

It was my fault. I need to run applications, especially decorated in ways that those counters, so I can add counters list.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -