我想我的服务器上的日志已满,是由WCF引起的此错误。我试了好几天才找到导致它的原因,但是没有运气。我的WCF服务(4.0)托管在iis中,据我所知,运行良好。也许有人知道吗?
我找到了停止将所有信息写入事件日志的方法。那就是我所做的:我将TraceLevelSwitch设置为1-仅错误。
<system.diagnostics>
<switches>
<!-- This switch controls data messages. In order to receive data
trace messages, change value="0" to value="1" -->
<add name="DataMessagesSwitch" value="0" />
<!-- This switch controls general messages. In order to
receive general trace messages change the value to the
appropriate level. "1" gives error messages, "2" gives errors
and warnings, "3" gives more detailed error information, and
"4" gives verbose trace information -->
<add name="TraceLevelSwitch" value="1" />
</switches>
</system.diagnostics>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句