跳转到主内容

Microsoft .NET FileSystemWatcher报告了System.IO.InteralBufferOverflowException

i
Knowledge Base guidance

This article may include metadata, visibility, validation state, and related support guidance.

适用场景

  • 使用SMB通知跟踪更改的应用程序
  • 使用FileSystemWatcher类Microsoft .NET Framework FileSystemWatcher 的应用程序 Win32 ReadDriveChangesW API (例如: Seclore)
  • ONTAP—在 共享上启用"changenoty"属性

问题描述

  • 如果应用程序使用 Change Notify跟踪CIFS共享中的更改、例如向目录添加/删除文件或将文件重命名、则不会收到有关所发生更改的所有通知
  • 使用FileSystemWatcher类的应用程序报告以下错误:
    • System.IO.InternalBufferOverflowException: Too many changes at once in directory <path>
  • 使用win32 ReadingsiChangesW API的应用程序可能无法按预期运行。