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

后端 未结 4 1917
盖世英雄少女心
盖世英雄少女心 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:12

    To write to the log file, make sure that identity running your web application has write access to the log directory.

    You can find the identity in the IIS 7 management console. Select the application pool that your web application is using. Click on Advanced Settings... In the properties window, look for the identity field. It may say Network Service. This is the account that needs write permission to your log output folder.

    If you already have a log file in this directory, try deleting it and letting the framework create it.

    Hope this helps.

提交回复
热议问题