Reputation: 24447
I follow the description in http://msdn.microsoft.com/en-us/library/0x5wc973(v=vs.140).aspx to enable the tracing of my ASP.NET pages. But it does not work. If I call the trace viewer with http://localhost/MyApp/trace.axd
then I receive the error that I should enable the trace flag in the web.config.
<configuration> <system.web> <trace enabled="true"/> </system.web> </configuration>
What can be the cause of the problem?
Upvotes: 0
Views: 15766
Reputation: 24447
I have solve the problem. My application was only a virtual directory. Converting it in an application solve the problem. Another solution is to add the trace flag in the root of the IIS.
Upvotes: 0
Reputation: 318
try this setting:
<trace enabled="true" pageOutput="true" />
This setting will display tracing directly on page.
If you want to check trace.axd, make sure, that you are accessing it with the correct address.
Depending on your settings, address can look like:
http://localhost:<PORTNUMBER>/trace.axd
Upvotes: 1