Alois Kraus
blog
Site Sections
Home
Contact
Syndication
Login
Posts
69
Comments
233
Trackbacks
162
<< My first post
|
Home
|
Read/Write App.config with .NET 2.0/Enterprise Library >>
Enterprise Library for .NET 2.0 - Instrumentation
The new Enterprise Library for .NET 2.0 has disabled instrumentation by default. It is very reasonable to do this because in low trust scenarios you are not able to install Performance Counters, Windows Event Logs/Sources or update WMI schemas. The previous version had "configurable" instrumentation by some #ifdefs in the source code. To change instrumentation you had to recompile the whole library every time you wanted to target a different deployment and therefore trust scenario. This time the Enterprise Library team had more time to make it really configurable. The outcome is remarkable easy to use. You can enable/disable the following instrumentation settings:
Error logging of all Application Blocks to the Windows Event Log.
Performance Counter writes.
Firing of WMI Events.
Show more ...
Share This Post:
posted on Wednesday, December 14, 2005 12:08 AM
Print
Comments
#
re: Enterprise Library for .NET 2.0 - Instrumentation
Jannik Anker
12/14/2005 11:21 AM
Hi Alois,
Just wondering if you've considered doing posts like this one as articles? For those of us reading the main feed, long posts are unbelievably annoying. You could create an article and then create a post in which you refer to it. IMHO, that would be a much nicer solution...
#
re: Enterprise Library for .NET 2.0 - Instrumentation
Alois Kraus
12/14/2005 7:07 PM
Hello Jannink,
sorry to for the inconvinience. I have moved part of my article to the article section.
Yours,
Alois Kraus
#
re: Enterprise Library for .NET 2.0 - Instrumentation
Jannik Anker
12/15/2005 6:38 AM
Looks great! Thanks ;-)
#
re: Enterprise Library for .NET 2.0 - Instrumentation
Jai
5/17/2006 6:09 AM
can anybody give me more information or give me some links to study about Enterprise Library for .NET 2.0 - Instrumentation?
Regards,
Jai
#
re: Enterprise Library for .NET 2.0 - Instrumentation
Alois Kraus
5/17/2006 5:40 PM
Did you click on the Show more ... link? It will show you a much bigger article.
Yours,
Alois Kraus
#
re: Enterprise Library for .NET 2.0 - Instrumentation
jay
10/13/2006 8:15 PM
I tried the code but it is not working...
Did anyone tried?
#
re: Enterprise Library for .NET 2.0 - Instrumentation
Alois Kraus
10/15/2006 5:32 PM
Hi Jay,
sorry I did forget to add the ProjectInstaller in the sample code. I have updated the article to make it work. When you do an installutil <yourexec> you should see some output like this:
>installutil ConsoleApplication4.exe
Microsoft (R) .NET Framework Installation utility Version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
Running a transacted installation.
Beginning the Install phase of the installation.
See the contents of the log file for the C:\Media\Blog\EntLib\Projects\EntlibWMI\EntlibWMI\bin\Debug\ConsoleApplication4
.exe assembly's progress.
The file is located at C:\Media\Blog\EntLib\Projects\EntlibWMI\EntlibWMI\bin\Debug\ConsoleApplication4.InstallLog.
Installing assembly 'C:\Media\Blog\EntLib\Projects\EntlibWMI\EntlibWMI\bin\Debug\ConsoleApplication4.exe'.
Affected parameters are:
logtoconsole =
assemblypath = C:\Media\Blog\EntLib\Projects\EntlibWMI\EntlibWMI\bin\Debug\ConsoleApplication4.exe
logfile = C:\Media\Blog\EntLib\Projects\EntlibWMI\EntlibWMI\bin\Debug\ConsoleApplication4.InstallLog
Installing WMI Schema: Started
Registering assembly: ConsoleApplication4_SN__Version_1.0.0.0
Ensuring that namespace exists: root\MicrosoftWmiNet
Ensuring that class exists: root\MicrosoftWmiNet:WMINET_Instrumentation
Ensuring that class exists: root\MicrosoftWmiNet:WMINET_InstrumentedNamespaces
Ensuring that class exists: root\MicrosoftWmiNet:WMINET_Naming
....
Post Comment
Title
*
Name
*
Email
Url
Comment
*
Remember Me?
Enter the code shown above
Article Categories
Patterns and Practices
C# Programing
Archives
December, 2011 (3)
September, 2011 (1)
August, 2011 (4)
July, 2011 (1)
June, 2011 (2)
March, 2011 (1)
November, 2010 (1)
July, 2010 (3)
June, 2010 (5)
May, 2010 (2)
April, 2010 (1)
March, 2010 (2)
February, 2010 (1)
December, 2009 (1)
November, 2009 (1)
October, 2009 (2)
September, 2009 (1)
June, 2009 (1)
May, 2009 (2)
December, 2008 (3)
November, 2008 (1)
May, 2008 (1)
April, 2008 (2)
January, 2008 (1)
November, 2007 (1)
February, 2007 (1)
January, 2007 (1)
October, 2006 (1)
September, 2006 (1)
August, 2006 (1)
July, 2006 (1)
June, 2006 (2)
May, 2006 (4)
April, 2006 (3)
March, 2006 (1)
February, 2006 (3)
January, 2006 (3)
December, 2005 (2)
November, 2005 (1)
Post Categories
General C# Programming
Enterprise Library
Physics
Non Work
F#
Performance
Image Galleries
Enterprise Library
C#
Personal
Programming
Rico Mariani: CLR Performance Guru
Copyright © 2005 Alois Kraus
This work is licensed under a
Creative Commons License