Traces...

  • Thread starter Thread starter Jean-Francois Hamelin
  • Start date Start date
J

Jean-Francois Hamelin

Hi,

I have a WS that uses my own class libraries. In my class libraries I use
System.Diagnostics.Trace class to output traces. In order to active them I
have to put the <system.diagnostics> element in the .config file, but this
element is illegal in a web.config file.

How can I enabled tracing in my class libraries from my web services ?

Thanks
JF
 
Hi Jean,

<system.diagnostics> can be placed in machine.config and application config
file. However, both of a web service and class library didn't support the
config file. We need to put <system.diagnostics> in machine.config.

Or you may consider other trace architecture in your application. For
example, logging application block. For more inforamtion, you may refer to:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/
Logging.asp

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Back
Top