Geeks With Blogs
David Douglass .NET on My Mind May 2006 Entries
ADO.NET 2.0 Tracing Quick Start
.NET Framework 2.0 includes a very low level trace facility for ADO.NET. Below are the basic steps to get tracing up and running. 1) Activate the tracing DLL. Framework 2.0 ships with AdoNetDiag.dll. This contains the ADO.NET tracing providers. To activate it, make the following registry entry (note the : in front of Path): 2) Register the ADO.NET tracing providers with WMI: 3) Setup tracing in the performance monitor: 3a) Create a new tracing log, name it whatever you like: 3b) On the general tab, ......

Posted On Monday, May 22, 2006 9:02 AM

Using Custom Filters in the Enterprise Library Logging Block
One of the things you can configure in the Enterprise Library logging block is a custom filter. This is a class that examines log entries prior to them being written and can prevent a log entry from being written. Microsoft's documentation on this subject is pretty lacking, so here's what you need to be aware of: 1) You need to inherit from LogFilter, even though the documentation says to implement ILogFilter. LogFilter inherits from ILogFilter. 2) You have to decorate your derivation with a ConfigurationElementType ......

Posted On Monday, May 15, 2006 4:36 AM

A Look at Enterprise Library for .NET Framework 2.0
So I decide it's time to check out the Enterprise Library ( The download ( and install go off without a hitch. What I'm really interested in is logging so I dig into it. Here's what I've learned (so far): 1) Although you get the source code, the installer will compile the library and you can use it pretty much like the framework. ......

Posted On Sunday, May 14, 2006 11:14 AM

Accessing XML Schema Information During Document Validation
.NET framework 2.0 includes a change so subtle it might appear insignificant. A new property, XmlReader.SchemaInfo, provides access to the entire schema definition of the current node. This offers a world of possibilities for making software more dynamic by acting on the schema; reflection for XML if you will. For example, XML schema includes an annotation element. Within an annotation you can specify documentation and appinfo (conceptually like a processing instruction but specific to a node or ......

Posted On Tuesday, May 2, 2006 8:46 AM

Copyright © David Douglass | Powered by: