Hi, I am trying to send an exception caught in Controller to trace.axd page, but I cant seem to figure it out. I have
<trace enabled="true" localOnly="false" mostRecent="true" pageOutput="false" />
in web.config, and my inteded reaction to an exception is
catch (Exception e)
{
ViewData["error"] += "Is not number!";
Trace.TraceError(e.ToString());
Trace.TraceError(e.StackTrace);
return View();
}
However, I can't find either of those strings anywhere on trace.axd page. So how to get them there?
Secondary, I want to ask, how should I turn off tracing not problematic (meaning those I do not personally send from some method) requests, since they just flood my trace and remove those occasional error reports sooner, than someone notices them.
Thanks in advance.