I don't see any trace output in ASP.NET
In Visual Studio 2010 I added Trace to Page_Load as described here http://www.asp101.com/articles/robert/tracing/default.asp but I don't see any Trace output, why?
public partial class _Default : System.Web.UI.Page {
protected void Page_Load(object sender, EventArgs e) {
Trace.IsEnabled = true;
Trace.Write("Hello World");
}
}
+2
a source to share
2 answers
Do you have something like this in your web.config?
<system.web>
<trace enabled ="true" pageOutput ="true" />
</system.web>
check this article
+1
a source to share