Exception:FileMode: Append 与 FileAccess: Read 的组合无效。

报错信息

ArgumentException
   在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   在 DynamicClass.MyFileSystemWather.WriteFile(String path, String msg)
   在 DynamicClass.MyFileSystemWather.fsWather_Created(Object sender, FileSystemEventArgs e)
   在 System.IO.FileSystemWatcher.OnCreated(FileSystemEventArgs e)
   在 System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* overlappedPointer)
   在 System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP) 

解决方法

暂无解决方案。

相关信息
0 查看
2022-01-08 20:28
Quicker版本
版本 反馈次数