Trace.Writeline skipped

Hi

I'm creating a web-service and am trying to trace to a listener using Trace.Writeline. However, the trace is not being written to and using the debugger, I see its because the Trace.Writeline() line is being skipped. However, if I change it to Debug.Writeline, it gets written.

Can anyone help as to why Trace.Writeline is being 'compiled out'

Thanks



Answer this question

Trace.Writeline skipped

  • Davo.net

    I'm not an expert on ASP.NET applications, so you are best to post this on the http://forums.asp.net forums. These forums are for non-web development posts only.

  • azrich

    How do I set this ....I'm used to WinForms where I can set it in the project's property pages. There appears to be no such option 'Build' property page for the web-service
  • James Spink

    Is the TRACE compiler symbol present at compile time

  • Simon253

    Hi,

    It sounds like this question isn't specifc to ASP.NET Web Services, so I'm going to move it to a more general forum.

    Thanks.

    Daniel Roth



  • Trace.Writeline skipped