wcf trying to set up tracing to debug, not writing to log file

后端 未结 4 1918
盖世英雄少女心
盖世英雄少女心 2021-01-02 02:48

here\'s my web.config, running a WCF service in an application on IIS7, but nothing is being written to the specified file. permission on the file has been granted for ever

4条回答
  •  青春惊慌失措
    2021-01-02 03:15

    1. Make sure you have configured both the system.diagnostics and the System.serviceModel/diagnostics sections configured.

    2. Make sure you have them configured in the correct App.config/Web.config file. The thing to note is that multiple config files may exist in a project, and the one used depends on the Build Configuration.

    Personally I had the very same symptom until I noticed that I put the sections under app.config (in my case, client side tracing), instead of app.DebugLocal.config. The later was used as my build configuration was set to DebugLocal.

提交回复
热议问题