Tracing in ASP.NET
I continued my tests without much success. I rolledback to FX1.1 and create a basic web service:
<%@ WebService Language=C# Class=Util %>
using System;
using System.Web.Services;
[WebService(Namespace="urn:pierre")]
public class Util : WebService {
[WebMethod()]
public string Time() {
System.Diagnostics.Trace.WriteLine("Time call");
return Context.Timestamp.TimeOfDay.ToString();
}
}
Then I created its web.config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.diagnostics>
<trace autoflush="false" indentsize="2">
<listeners>
<add name="traceListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="D:\Inetpub\wwwroot\log\myTest.log" />
</listeners>
</trace>
</system.diagnostics>
</configuration>
Finally I created myTest.log file (empty) getting the modify rights to ASPNET user on the folder D:\Inetpub\wwwroot\log
Running the web service nothing happens. The log file is still empty. I've searched on Google but it seems that many people requested help but there isn't a solution available (or I didn't find it). Any clues ?