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.HandleListeners(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

Reply via email to