Trace a .NET 1.1 Web Service call [closed]
I'm having an issue trying to find an error with a web service using .NET 1.1. In .NET 2.0/3 I can add a trace section to my web config like:
<system.diagnostics>
<trace autoflush="true" />
<sources>
<source name="System.Web.Services.Asmx">
<listeners>
<add name="AsmxTraceFile" type="System.Diagnostics.TextWriterTraceListener" initializeData="c:\subconnector\local.log" traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId" />
</listeners>
</source>
</sources>
<switches>
<add name="System.Web.Services.Asmx" value="Verbose" />
</switches>
</system.diagnostics>
And that works great, I get detailed logs of what is hitting the service. But when I tried to use that in a .NET 1.1 site, it gave an error - it does not recognize the tags. So using what I could find while googling, I trimmed it down to:
<system.diagnostics>
<switches>
<add name="General" value="4" />
<add name="Data" value="1" />
<add name="System.Web.Services.Asmx" value="4" />
</switches>
<trace autoflush="true" indentsize="4" >
<listeners>
<add name="TextListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="d:\logfiles\local.log" />
</listeners>
</trace>
</system.diagnostics>
(I added the "General" and "Data" lines .. because I saw that in the MSDN page for the switches...)
But nothing is written to my log file. The file gets created, but no output. Anyone have any insight on how to get tracing?
(My problem is, a consumer of our web service is getting a "network error" - We can see a IIS log entry when they try to access the service, but there's no other indication it gets past the initial IIS hit - no other logs are written. We can hit the web service using the discovery page开发者_运维知识库 (hitting the .asmx page), and it works fine.)
Thanks.
精彩评论