Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 2.03 KB

unable-to-write-to-log-file-because-reduce-free-disk-space-below-reservedspace.md

File metadata and controls

33 lines (23 loc) · 2.03 KB
description title ms.date f1_keywords ms.assetid
Learn more about: Unable to write to log file because writing to it would reduce free disk space below ReservedSpace value
Unable to write to log file because writing to it would reduce free disk space below ReservedSpace value
07/20/2015
vbrApplicationLog_ReservedSpaceEncroached
95832e70-4ecc-47aa-90c1-f35c4d468151

Unable to write to log file because writing to it would reduce free disk space below ReservedSpace value

The xref:Microsoft.VisualBasic.Logging.FileLogTraceListener class could not write to the log file because:

  • The amount of free disk space (in bytes) is less than the value of the xref:Microsoft.VisualBasic.Logging.FileLogTraceListener.ReserveDiskSpace%2A property

    —and—

  • The value of the xref:Microsoft.VisualBasic.Logging.FileLogTraceListener.DiskSpaceExhaustedBehavior%2A property was xref:Microsoft.VisualBasic.Logging.DiskSpaceExhaustedOption.ThrowException.

To correct this error

  1. Archive the existing logs and remove them from the computer to allow the xref:Microsoft.VisualBasic.Logging.FileLogTraceListener object to create new logs.

  2. Change the value of the xref:Microsoft.VisualBasic.Logging.FileLogTraceListener.ReserveDiskSpace%2A property to a smaller number to reserve less disk space.

  3. Set the xref:Microsoft.VisualBasic.Logging.FileLogTraceListener.DiskSpaceExhaustedBehavior%2A property to xref:Microsoft.VisualBasic.Logging.DiskSpaceExhaustedOption.DiscardMessages to discard messages without warning if there is not enough free disk space.

See also

  • xref:Microsoft.VisualBasic.Logging.FileLogTraceListener.ReserveDiskSpace%2A
  • xref:Microsoft.VisualBasic.Logging.FileLogTraceListener.DiskSpaceExhaustedBehavior%2A
  • xref:Microsoft.VisualBasic.Logging.FileLogTraceListener
  • My.Application.Log
  • My.Application.Info.DirectoryPath