3
我想弄清楚如何使一個3.5 IIS的WCF服務寫入到asp.net跟蹤?如何使一個.svc文件寫入asp.net Trace.axd
我想弄清楚如何使一個3.5 IIS的WCF服務寫入到asp.net跟蹤?如何使一個.svc文件寫入asp.net Trace.axd
我的猜測是,你將它添加到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>