Logging from multiple processes to same file using Enterprise Library 4.1

后端 未结 4 1530
旧时难觅i
旧时难觅i 2021-02-15 12:23

I have several processes running concurrently that I want to log to the same file.

We have been using Enterprise Library 4.1 Logging Application Block (with a Roll

4条回答
  •  春和景丽
    2021-02-15 12:45

    The problem occurs when the App Pool Recycles and allows for Overlapping Threads. The closing thread has it still open, and the new thread gets the error. Try disabling the overlapping recycling behavior in IIS, or create your own version of the text writer.

提交回复
热议问题