M
MR
i am trying to add a listener to my application in the config file. The
documentation says to add it as following:
<system.diagnostics>
<trace autoflush="true" indentsize="0">
<listeners>
<add name="myListener"
type="System.Diagnostics.TextWriterTraceListener, system,
version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
initializeData="myListener.log" />
</listeners>
</trace>
when i add this to my app.config file, "initializeData" is underlined and
the error says: the "initializeData" attribute is not declared
why do i get this error? i don't see any other way to add a text trace file.
how id this supposed to work?
thanks
m
documentation says to add it as following:
<system.diagnostics>
<trace autoflush="true" indentsize="0">
<listeners>
<add name="myListener"
type="System.Diagnostics.TextWriterTraceListener, system,
version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
initializeData="myListener.log" />
</listeners>
</trace>
when i add this to my app.config file, "initializeData" is underlined and
the error says: the "initializeData" attribute is not declared
why do i get this error? i don't see any other way to add a text trace file.
how id this supposed to work?
thanks
m