【问题标题】:Disabling trace.axd at the machine level in ASP.NET 2.0 in Windows Server 2003在 Windows Server 2003 的 ASP.NET 2.0 的机器级别禁用 trace.axd
【发布时间】:2011-07-08 00:13:18
【问题描述】:

在 Windows Server 2003 64 位设置为 32 运行时,我想更改 C:\WINDOWS\microsoft.net\Framework\v2.0.50727\CONFIG\web.config 中的全局 web.config

禁用跟踪。

我在这里看到了 add..path:

我想我需要删除它;这样做会有帮助吗? ()

更改 web.config 后是否需要重新启动或只是重新启动服务器?我假设更改将传播到其他 web.config 文件,如果我想启用/禁用跟踪,我将在这些文件中进行指定的更改?

【问题讨论】:

    标签: asp.net trace


    【解决方案1】:

    是的。此外,编辑 machine.config 将回收所有 AppDomain,因此您不必手动重新启动。

    要禁用跟踪,您可以这样做:

    <trace
        enabled="false"
        ...
    />
    

    【讨论】:

    • machine.config 在哪里?
    • &lt;system.web&gt;&lt;/system.web&gt;内的任何地方
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-06-24
    • 2010-10-13
    • 1970-01-01
    • 1970-01-01
    • 2011-12-24
    • 2015-01-29
    • 1970-01-01
    相关资源
    最近更新 更多