[Mono-bugs] [Bug 326772] traceOutputOptions not recognized for TraceListener configuration
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Dec 11 09:13:59 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=326772
User lars.g.kjellberg at get2net.dk added comment
https://bugzilla.novell.com/show_bug.cgi?id=326772#c2
Lars Kjellberg <lars.g.kjellberg at get2net.dk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
Info Provider|lars.g.kjellberg at get2net.dk |
--- Comment #2 from Lars Kjellberg <lars.g.kjellberg at get2net.dk> 2007-12-11 07:13:59 MST ---
Miguel,
The application terminates with an unhandled exception:
C:\Documents and Settings\kbn_lgk\My Documents\Visual Studio
2005\Projects\LoggingDemo\LoggingDemo\bin\Debug>mono --runtime=v2.0.50727
LoggingDemo.exe
Unhandled Exception: System.Configuration.ConfigurationException: Unrecognized
attribute `traceOutputOptions' 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
System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection
(System.String configKey) [0x00000]
at System.Configuration.ConfigurationManager.GetSection (System.String
sectionName) [0x00000]
at System.Configuration.ConfigurationSettings.GetConfig (System.String
sectionName) [0x00000]
at System.Diagnostics.DiagnosticsConfiguration.get_Settings () [0x00000]
at System.Diagnostics.TraceSource..ctor (System.String name, SourceLevels
sourceLevels) [0x00000]
at System.Diagnostics.TraceSource..ctor (System.String name) [0x00000]
at LoggingDemo.Program.Main (System.String[] args) [0x00000]
I agree that traceOutputOption is not that well documented. You really can't
guess that this option is available on an <add > element within a
<sharedListeners > element. The option is clearly missing in Microsoft's
reference: http://msdn2.microsoft.com/en-us/library/ms229126(VS.90).aspx.
The only reason I guessed that traceOutputOptions is valid on <add > within
<sharedListeners > is that Visual Studio's XML schema for <system.diagnostics>
defines it, and thus it pops up in Intellisense.
However, the option is documented for the <add > element inside a <listeners >
element: http://msdn2.microsoft.com/en-us/library/ms229209(VS.90).aspx. The
values accepted for traceOutputOptions appear to be the string literals
corresponding to the values of the enumeration TraceOption. The documentation
for TraceOption even shows the use of traceOutputOptions:
http://msdn2.microsoft.com/en-us/library/a10k7w6c(VS.90).aspx
I hope this helps, and sorry for the late response.
/Lars
--
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