Here is my web.config, running a WCF service in an application on IIS7, but nothing specified file Is being written for Permission is granted to all on file.
& lt; System.diagnostics & gt; & Lt; Sources & gt; & Lt; Source name = "System.ServiceModel" switchValue = "notification, activity tracing, error, warning, critical" promotional activity = "true" & gt; & Lt; Listeners & gt; & Lt; Add name = "traceListener" type = "System.Diagnostics.TextWriterTraceListener" initializeData = "c: \ \ tracestext.log login" /> & Lt; / Listeners & gt; & Lt; / Source & gt; & Lt; / Sources & gt; & Lt; /system.diagnostics>
I can just add a service reference just fine.
then I try to call a windows app service, and after a few minutes, security dialogue within receive an error on the running machine on windows app "client configured timeout (00:00:00) Unable to complete. Current Talk is leg 1 (00:00). "
But absolutely nothing is written in the configurable trace log file specified in
Do I have to do something else to enable tracing? Help
Thanks for the edit: "Sources" section is no longer matches the recommended section here:
I've added ". Diagnosis messagelogging" section "system.servicemodel"
and shows the event viewer: "message logging has been turned on may be logged in sensitive information clearly, even if it was encrypted on the wire .. example For, message bodies process name: w3wp process ID: 1784 "
take The following log file is still empty
Yes - you have only a few NAT tracing the source and define listeners Done - but you have not yet instructed the WCF to trace!
You also need it:
& lt; System ServiceModel & gt; & Lt; Diagnose & gt; & Lt; Messgelogging Logmessgestronsportlevel = "true" Logmessgesatsserviselevel = "false" Logmalformedmessges = "true" Logentiremessge = "true" Makssizofamessgetolog = "65535000" Mkmessgestolog = "500" / & gt; & Lt; / Diagnosis & gt; & Lt; /system.serviceModel>
Combine these two sections of the config should do this!
To add a setting to get your message back for the log file, you may want to get your & lt; System.diagnostics & gt; In the
section:
& Lt; /system.diagnostics>