如何使一个.svc文件写入到ASP.NET Trace.axd [英] How to make a .svc file write to asp.net Trace.axd
本文介绍了如何使一个.svc文件写入到ASP.NET Trace.axd的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图找出如何使IIS下写托管到asp.net一丝3.5 WCF服务,多数民众赞成?
I am trying to figure out how to make a 3.5 WCF service thats hosted under IIS write to the asp.net trace?
推荐答案
我的猜测是,你想补充一点,到Web.config文件:
My guess is that you would add this to the web.config file:
<system.diagnostics>
<sources>
<source name="System.ServiceModel" switchValue="Information, ActivityTracing">
<listeners>
<add name="AspTraceListener"
type="System.Web.WebPageTraceListener" />
</listeners>
</source>
</sources>
</system.diagnostics>
这篇关于如何使一个.svc文件写入到ASP.NET Trace.axd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文