Udostępnij za pośrednictwem


Unable to write to log file because writing to it would cause it to exceed MaximumSize value

The FileLogTraceListener class could not write to the log file because:

To correct this error

  1. Archive the existing logs and remove them from the computer to allow the FileLogTraceListener object to create new logs.

  2. Change the value of the MaxFileSize property to allow for larger logs.

  3. Set the DiskSpaceExhaustedBehavior property to DiscardMessages to discard messages without warning if the log is too large.

See Also

Reference

MaxFileSize

DiskSpaceExhaustedBehavior

FileLogTraceListener

My.Application.Log Object

My.Log Object