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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top