I am trying to send an exception caught on the controller to the trace.axd page, but I cannot figure out how to figure it out. I have
<trace enabled="true" localOnly="false" mostRecent="true" pageOutput="false" />
in web.config, and my intuitive reaction to exception is
catch (Exception e) { ViewData["error"] += "Is not number!"; Trace.TraceError(e.ToString()); Trace.TraceError(e.StackTrace); return View(); }
However, I cannot find any of these lines on the trace.axd page. So how to get them?
Secondly, I want to ask how can I turn off tracing, and not problems (that is, those that I personally do not send using any method), since they simply flood my track and delete these random error reports before anyone else then he notices them.
Thanks in advance.
source share