[Mono-bugs] [Bug 413203] New: traceOutputOptions not recognized for TraceListener configuration
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jul 30 07:47:45 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=413203
User sabbadin at sabbasoft.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=413203#c326772
Summary: traceOutputOptions not recognized for TraceListener
configuration
Product: Mono: Class Libraries
Version: 1.9
Platform: All
OS/Version: Windows XP
Status: NEW
Severity: Enhancement
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: sabbadin at sabbasoft.com
QAContact: mono-bugs at lists.ximian.com
CC: miguel at novell.com
Depends on: 326772
Found By: Other
+++ This bug was initially created as a clone of Bug #326772 +++
Additional free attributes MUST BE ALLOWED in an add section of a
sharedlisteners registration ..
such as
<sharedListeners>
<add name="RollFileListener" type="WKI.Utils.Trace.RollFileListener,
wki.utils"
logDirectory="\log\" bufferSize="1024"
maxFileSize="10000000"
maxFileNumber="10" autoFlush="true"
baseFileName="TraceNet"/>
</add>
the class will then override GetSupportedAttributes and then will pick up the
StringDictionary Attributes property coming from its base class TraceSource to
get the values of such attributes ..
------------
Error IS
System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. ---> System.TypeInitializationException: An exception
was thrown by the type initializer for System.Xml.Serialization.XmlSerializer
---> System.Configuration.ConfigurationException: Unrecognized attribute
'logDirectory' on element <add/>.
at
System.Diagnostics.DiagnosticsConfigurationHandler.ThrowUnrecognizedAttribute
(System.String attribute, System.Xml.XmlNode node) [0x00000]
at
System.Diagnostics.DiagnosticsConfigurationHandler.ValidateInvalidAttributes
(System.Xml.XmlAttributeCollection c, System.Xml.XmlNode node) [0x00000]
at System.Diagnostics.DiagnosticsConfigurationHandler.AddTraceListeners
(IDictionary d, System.Xml.XmlNode listenersNode,
System.Diagnostics.TraceListenerCollection listeners) [0x00000]
at System.Diagnostics.DiagnosticsConfigurationHandler.Create (System.Object
parent, System.Object configContext, System.Xml.XmlNode section) [0x00000]
at System.Configuration.ConfigurationSection.GetRuntimeObject () [0x00000]
at
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list