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


You can also check that your computer configuration does not include the following:

 <deployment retail="true" /> 

      



$ WINDOWS $ \ Microsoft.NET \ Framework \ version \ CONFIG

This option disables tracing for all sites on the machine regardless of the web.config and page settings

+1


a source







All Articles