Sashidhar Kokku

.NET and beyond...

<December 2008>
SuMoTuWeThFrSa
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910


Navigation

Blogs I visit...

Subscriptions

News

http://www.csthota.com/blogmap/ Listed on BlogShares Terror Alert Level TestDriven.NET Blogwise - blog directory

Post Categories



Disabling performance counters for Enterprise Library 1.0

Ok...that title was a bit misleading....however....I am not alone when I say that I have had trouble integrating my web-applications successfully with E.Lib 1.0 and deploying them on a win 2003 server. Each time, they just give me errors of the weirdest nature. Most of my googling led to making some registry settings and using the “Install Services“ feature.

While there is no “switch” or “config” element that i cud change to enable or disable the performance counters....there certainly is an alternate way....just dont have them at all in ur EntLib. That would mean... No more instrumentation options..... No more perfomance logging....etc.In a way, I think it speeds up your application....

Cutting to the chase.....we need to recompile the whole Enterprise library with these options disabled. So..herez what I managed to do...went through the source code of the libraries....and found a few parameters set up in the build config that when changed could dothe trick just fine.

1. Open Start->programs->MS Patterns and Practices -> Ent Lib -> App Blocks -> Ent Lib.Sln.

2. Take your own sweet time to minimize all the folder(s) in ur solution window.

3. Rt Clk on the “Common” project and go to “Properties”

4. In the “Configuration Properties” go to the “Build” option.

5. In the Conditional Build section of the property grid, remove everything except “DEBUG;TRACE”

6. Close everything and recompile.

    Remember...on compilation nothing will go to your common bin folder. I just plainly used the “Copy Assemblies to bin directory” option in my Start->programs->MS Patterns and Practices -> Ent Lib  part of my menu.

 

Now...just to be sure....de-reference your existing references to the entlib and add references again.....and woala.....you are done.

I tried installing the recompiled version on windows 2003 server and ran my web apps from there...(using mostly the data access block and the config block) and so far it works like a charm.

posted on Friday, March 25, 2005 6:39 AM by sskokku


# Disabilitare i performance counters delle Enterprise Library @ Thursday, November 08, 2007 4:44 PM

Disabilitare i performance counters delle Enterprise Library

Anonymous




Powered by Dot Net Junkies, by Telligent Systems