That worked. Thank you.

--Jekke

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Brock Allen
Sent: Monday, August 21, 2006 1:37 PM
To: [email protected]
Subject: Re: [ADVANCED-DOTNET] Trace listeners


The typename should be "Namespace.Class, AssemblyName", where
AssemblyName
is the file name without the file extension.

-Brock
http://staff.develop.com/ballen


> -----Original Message-----
> From: Discussion of advanced .NET topics.
> [mailto:[EMAIL PROTECTED] On Behalf Of Jekke Bladt
> Sent: Monday, August 21, 2006 1:34 PM
> To: [email protected]
> Subject: [ADVANCED-DOTNET] Trace listeners
>
> All--
>
> I've written a class than inherits from TraceListener and
> tried to add a
> reference to it in my app.config file. Here is the reference:
>
> <?xml version="1.0" encoding="utf-8" ?>
> <configuration>
>         <startup>
>                 <supportedRuntime version="v1.1.4322" />
>         </startup>
>         <appSettings>
>                 <add key="comet-policy-build" value="1005" />
>                 <add key="log4net.Internal.Info" value="true"/>
>         </appSettings>
>         <system.diagnostics>
>                 <trace autoflush="false" indentsize="4">
>                         <listeners>
>                                 <add name="Log4NetListener"
> type="GroupOne.Utilities.TraceWriters.L4NTraceListener" />
>                         </listeners>
>                 </trace>
>         </system.diagnostics>
> </configuration>
>
> And here's the exception I get:
>
> System.Configuration.ConfigurationException: Couldn't find type for
> class GroupOne.Utilities.TraceWriters.L4NTraceListener.
>    at
> System.Diagnostics.DiagnosticsConfigurationHandler.HandleListe
> ners(Hasht
> able config, XmlNode listenersNode, Object context)
> (stack trace snipped.)
>
> I've confirmed the name of the class is correct. Does anyone know what
> I'm missing here?
>
> --Jekke
>
> ===================================
> This list is hosted by DevelopMentor.  http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to