【问题标题】:How to make a .svc file write to asp.net Trace.axd如何使 .svc 文件写入 asp.net Trace.axd
【发布时间】:2011-05-19 12:04:20
【问题描述】:

我想弄清楚如何使托管在 IIS 下的 3.5 WCF 服务写入 asp.net 跟踪?

【问题讨论】:

    标签: asp.net wcf iis .net-3.5 trace


    【解决方案1】:

    我的猜测是您会将其添加到 web.config 文件中:

    <system.diagnostics>
       <sources>
          <source name="System.ServiceModel" switchValue="Information, ActivityTracing">
              <listeners>
                  <add name="AspTraceListener"
                       type="System.Web.WebPageTraceListener" />
              </listeners>
          </source>
       </sources>
    </system.diagnostics>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-05
      相关资源
      最近更新 更多