Trace.Assert method

  • Thread starter Thread starter AJ
  • Start date Start date
A

AJ

How can I use Trace.Assert method?

It says that 'Assert' is not a member
of 'System.Web.TraceContext'.

Please help. Thanks.
 
AJ,
As the message states, Assert is not a member of System.Web.TraceContext.

It sounds like you are using ASP.NET, if you want to use
System.Diagnostics.Trace.Assert, you will need to use the fully qualified
name.

Note: System.Diagnostics.Trace is not specifically compatible with ASP.NET.
I have not used it, so I cannot guarantee that it will work, or work as you
expect. Remember ASP.NET is server side, so any dialog boxes that
System.Diagnostics.Trace may attempt to display will be on the server...

Hope this helps
Jay
 
Back
Top