Remove the line config.EnableSystemDiagnosticsTracing();
that is probably in your WebApiConfig file.
How to disable tracing in web api
-
10-07-2023 - |
Question
I have created a Web API project in VS 2013. Where the Tracing is enabled by default. How can I disable it?
I tried few things in webapi.config, but didn't work out.
Thanks in Advance :)
Solution
OTHER TIPS
In general, we can enable and disable tracing in web.config file, under system.web section.
<System.web>
<trace enabled="false" />
Hope this will be helpful.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow