The LBTT Spot
"Lifeline is focused on developing and marketing systems designed to assist in the early detection of breast and ovarian cancer."
C# Source Code Viewer
View C# Source Code
Article Categories:
.Net Framework
.Net Framework 1.1
ADO.NET
ASP.NET
Assemblies
Asynchronous Methods
C#
Collections
Configuration
Delegates
Events
Pocket PC
Regular Expressions
Smart Devices
SQL Server
Visual C#
Visual Studio .NET
Visual Studio .NET 2003
Windows Forms
XML
C# .Net Fun Menu
View Current Page's ASP.NET Source Code
C# Reference
C# Study Flash Cards
Valuable Links
Contact Us
Site Map
Mike's Portfolio
C# Reference Search:
Full Text Search:
Articles by Author:
Mike G.
Code Examples (zipped):
MTGUpTime.zip
ThreadLockingE...
ThreadingExamp...
RemotingExampl...
ErrorProviderE...
DelegateExampl...
CustomArrayLis...
AsynchronousEx...
C# .Net Source Code for /Articles/Framework/TraceListenerConfigurationDocumentation.aspx
This ASP.NET page was written by Mike G.. <% @ Page Language="C#" Debug="True" %> <% @ Register TagPrefix="DotNetFun" TagName="Header" Src="/Header.ascx" %> <% @ Register TagPrefix="DotNetFun" TagName="Footer" Src="/Footer.ascx" %>
<%# CtrlHeader.ArticleTitle %>
<%# CtrlHeader.ArticleDescription %>
Category:
Posted
<%# CtrlHeader.AuthorDate.ToShortDateString() %>,
By
<%# CtrlHeader.AuthorName %>
" /> The .Net Framework SDK Documentation v1.0 contains incorrect information on how to add Trace Listeners to your application via the application configuration file (assemblyname.exe.config).
Specifically, the
<listeners> Element
page shows an example on how to add Trace Listeners, and the problem lies in the
type
attribute syntax.
.Net Framework SDK v1.0 -
<listeners> Element
Example:
.Net Framework SDK v.1.1 -
<listeners> Element
Example:
NOTE:
Even though the second example is based on .Net Framework 1.1, it is still the correct syntax for applications built with .Net Framework 1.0 - it will work with both versions of the Framework.
type
attribute syntax - you do not need to provide the assembly's version, culture or token. You can simply provide the
type
, so long as there's only one version, and it's not part of the GAC (Global Assembly Cache).