开发者

Trace a .NET 1.1 Web Service call [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 11 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜