Exception:“Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher”的类型初始值设定项引发异常。引发类型为“System.OutOfMemoryException”的异常。

报错信息 1
TypeInitializationException: “Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher”的类型初始值设定项引发异常。
--TypeName: Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher
StackTrace:
   在 Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.CancelToken(ChangeTokenInfo matchInfo)
   在 Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.ReportChangeForMatchedEntries(String path)
   在 Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.OnError(Object sender, ErrorEventArgs e)
   在 System.IO.FileSystemWatcher.OnError(ErrorEventArgs e)
   在 System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* overlappedPointer)
   在 System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

OutOfMemoryException: 引发类型为“System.OutOfMemoryException”的异常。
StackTrace:
   在 Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher..cctor()

版本:1.43.57 2025-10-10 16:06 Microsoft Windows NT 10.0.26100.0