ASP.NET Debugging with Trace.Warn
If you are trying to use Trace.Warn in your .NET application and you are getting an error that Trace is not declared than it probably means that you need to use the full object path declaration.
HttpContext.Current.Trace.Warn("Your String")