Exception:路徑中有不合法的字元。

报错信息 1
ArgumentException: 路徑中有不合法的字元。
--Message: 路徑中有不合法的字元。
StackTrace:
   於 System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
   於 System.IO.Path.GetFileName(String path)
   於 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   於 System.Windows.Media.Imaging.BitmapDecoder.SetupDecoderFromUriOrStream(Uri uri, Stream stream, BitmapCacheOption cacheOption, Guid& clsId, Boolean& isOriginalWritable, Stream& uriStream, UnmanagedMemoryStream& unmanagedMemoryStream, SafeFileHandle& safeFilehandle)
   於 System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache)
   於 System.Windows.Media.Imaging.BitmapImage.FinalizeCreation()
   於 System.Windows.Media.Imaging.BitmapSource.CompleteDelayedCreation()
   於 System.Windows.Media.Imaging.BitmapSource.get_WicSourceHandle()
   於 System.Windows.Media.Imaging.BitmapSource.get_DUCECompatiblePtr()
   於 System.Windows.Media.Imaging.BitmapSource.UpdateBitmapSourceResource(Channel channel, Boolean skipOnChannelCheck)
   於 System.Windows.Media.Imaging.BitmapSource.AddRefOnChannelCore(Channel channel)
   於 System.Windows.Media.Imaging.BitmapSource.System.Windows.Media.Composition.DUCE.IResource.AddRefOnChannel(Channel channel)
   於 System.Windows.Media.ImageBrush.AddRefOnChannelCore(Channel channel)
   於 System.Windows.Media.Brush.System.Windows.Media.Composition.DUCE.IResource.AddRefOnChannel(Channel channel)
   於 System.Windows.Media.RenderData.System.Windows.Media.Composition.DUCE.IResource.AddRefOnChannel(Channel channel)
   於 System.Windows.UIElement.RenderContent(RenderContext ctx, Boolean isOnChannel)
   於 System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   於 System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   於 System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   於 System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   於 System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   於 System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   於 System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   於 System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   於 System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   於 System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   於 System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   於 System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   於 System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   於 System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   於 System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   於 System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   於 System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   於 System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   於 System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   於 System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   於 System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   於 System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   於 System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   於 System.Windows.Media.Visual.UpdateChildren(RenderContext ctx, ResourceHandle handle)
   於 System.Windows.Media.Visual.RenderRecursive(RenderContext ctx)
   於 System.Windows.Media.Visual.Render(RenderContext ctx, UInt32 childIndex)
   於 System.Windows.Media.CompositionTarget.Compile(Channel channel)
   於 System.Windows.Media.CompositionTarget.System.Windows.Media.ICompositionTarget.Render(Boolean inResize, Channel channel)
   於 System.Windows.Media.MediaContext.Render(ICompositionTarget resizedCompositionTarget)
   於 System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   於 System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   於 System.Windows.Interop.HwndTarget.OnResize()
   於 System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   於 System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   於 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   於 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   於 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   於 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

版本:1.43.11 2024-08-21 09:13 Microsoft Windows NT 10.0.22631.0