[GH-ISSUE #1010] {已禁用桌面合成} 操作无法完成,因为已禁用桌面合成。 (异常来自 HRESULT:0x80263001) #3720

Closed
opened 2026-03-13 12:44:44 +03:00 by kerem · 3 comments
Owner

Originally created by @janewar on GitHub (Oct 21, 2025).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/1010

Originally assigned to: @Copilot on GitHub.

Environment

Component Version
1Remote(Store) 1.1.1.2(Built at: 2025-05-24T15:21:07.359+08:00)(Microsoft store)
.NET Framework .NET Framework 4.8
CLR 4.0.30319.42000
OS Windows 10 Pro 64-bits 10.0.26200.0 (2009) build 26200

Error Info

{已禁用桌面合成} 操作无法完成,因为已禁用桌面合成。 (异常来自 HRESULT:0x80263001)

Stack Trace

   在 Standard.NativeMethods.DwmExtendFrameIntoClientArea(IntPtr hwnd, MARGINS& pMarInset)
   在 System.Windows.Shell.WindowChromeWorker._ExtendGlassFrame()
   在 System.Windows.Shell.WindowChromeWorker._UpdateFrameState(Boolean force)
   在 System.Windows.Shell.WindowChromeWorker._HandleDwmCompositionChanged(WM uMsg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 System.Windows.Shell.WindowChromeWorker._WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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)

Recent Log

[T:001][09:30:38.089]	`Warning`		[(InvokeMethod:0)]	RDP(R510-CCCVPN-RPA-50) exit with error code 3(你的远程桌面服务会话已结束。
远程计算机正在重新启动。)
[T:001][09:30:38.103]	`Warning`		[(RaiseOnOnDisconnected:0)]	RDP Host: Call ReConn
[T:001][09:30:39.217]	`Warning`		[(InvokeMethod:0)]	RDP(R510-CCCVPN-RPA-50) exit with error code 3(你的远程桌面服务会话已结束。
远程计算机正在关闭。)
[T:001][10:38:38.748]	`Warning`		[(RaiseEventImpl:0)]	RDP Host: Call ReConn
[T:001][10:41:31.256]	`Fatal`		[(TryCatchWhen:0)]	
> System.Runtime.InteropServices.COMException (0x80263001): {已禁用桌面合成} 操作无法完成,因为已禁用桌面合成。 (异常来自 HRESULT:0x80263001)
   在 Standard.NativeMethods.DwmExtendFrameIntoClientArea(IntPtr hwnd, MARGINS& pMarInset)
   在 System.Windows.Shell.WindowChromeWorker._ExtendGlassFrame()
   在 System.Windows.Shell.WindowChromeWorker._UpdateFrameState(Boolean force)
   在 System.Windows.Shell.WindowChromeWorker._HandleDwmCompositionChanged(WM uMsg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 System.Windows.Shell.WindowChromeWorker._WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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)
> StackTrace:    在 Standard.NativeMethods.DwmExtendFrameIntoClientArea(IntPtr hwnd, MARGINS& pMarInset)
   在 System.Windows.Shell.WindowChromeWorker._ExtendGlassFrame()
   在 System.Windows.Shell.WindowChromeWorker._UpdateFrameState(Boolean force)
   在 System.Windows.Shell.WindowChromeWorker._HandleDwmCompositionChanged(WM uMsg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 System.Windows.Shell.WindowChromeWorker._WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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)

Originally created by @janewar on GitHub (Oct 21, 2025). Original GitHub issue: https://github.com/1Remote/1Remote/issues/1010 Originally assigned to: @Copilot on GitHub. <details> ## Environment | Component | Version | |:------------------|:--------------------------------------| |1Remote(Store) | `1.1.1.2(Built at: 2025-05-24T15:21:07.359+08:00)`(Microsoft store)| |.NET Framework | `.NET Framework 4.8` | |CLR | `4.0.30319.42000` | |OS | `Windows 10 Pro 64-bits 10.0.26200.0 (2009) build 26200` | ## Error Info {已禁用桌面合成} 操作无法完成,因为已禁用桌面合成。 (异常来自 HRESULT:0x80263001) ## Stack Trace ``` 在 Standard.NativeMethods.DwmExtendFrameIntoClientArea(IntPtr hwnd, MARGINS& pMarInset) 在 System.Windows.Shell.WindowChromeWorker._ExtendGlassFrame() 在 System.Windows.Shell.WindowChromeWorker._UpdateFrameState(Boolean force) 在 System.Windows.Shell.WindowChromeWorker._HandleDwmCompositionChanged(WM uMsg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 System.Windows.Shell.WindowChromeWorker._WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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) ``` ## Recent Log ``` [T:001][09:30:38.089] `Warning` [(InvokeMethod:0)] RDP(R510-CCCVPN-RPA-50) exit with error code 3(你的远程桌面服务会话已结束。 远程计算机正在重新启动。) [T:001][09:30:38.103] `Warning` [(RaiseOnOnDisconnected:0)] RDP Host: Call ReConn [T:001][09:30:39.217] `Warning` [(InvokeMethod:0)] RDP(R510-CCCVPN-RPA-50) exit with error code 3(你的远程桌面服务会话已结束。 远程计算机正在关闭。) [T:001][10:38:38.748] `Warning` [(RaiseEventImpl:0)] RDP Host: Call ReConn [T:001][10:41:31.256] `Fatal` [(TryCatchWhen:0)] > System.Runtime.InteropServices.COMException (0x80263001): {已禁用桌面合成} 操作无法完成,因为已禁用桌面合成。 (异常来自 HRESULT:0x80263001) 在 Standard.NativeMethods.DwmExtendFrameIntoClientArea(IntPtr hwnd, MARGINS& pMarInset) 在 System.Windows.Shell.WindowChromeWorker._ExtendGlassFrame() 在 System.Windows.Shell.WindowChromeWorker._UpdateFrameState(Boolean force) 在 System.Windows.Shell.WindowChromeWorker._HandleDwmCompositionChanged(WM uMsg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 System.Windows.Shell.WindowChromeWorker._WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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) > StackTrace: 在 Standard.NativeMethods.DwmExtendFrameIntoClientArea(IntPtr hwnd, MARGINS& pMarInset) 在 System.Windows.Shell.WindowChromeWorker._ExtendGlassFrame() 在 System.Windows.Shell.WindowChromeWorker._UpdateFrameState(Boolean force) 在 System.Windows.Shell.WindowChromeWorker._HandleDwmCompositionChanged(WM uMsg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 System.Windows.Shell.WindowChromeWorker._WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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) ``` </details>
kerem 2026-03-13 12:44:44 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@VShawn commented on GitHub (Oct 21, 2025):

Desktop composition should always be enabled.
https://learn.microsoft.com/en-us/windows/win32/dwm/wm-dwmcompositionchanged

<!-- gh-comment-id:3424489535 --> @VShawn commented on GitHub (Oct 21, 2025): Desktop composition should always be enabled. https://learn.microsoft.com/en-us/windows/win32/dwm/wm-dwmcompositionchanged
Author
Owner

@github-actions[bot] commented on GitHub (Nov 21, 2025):

This issue is stale because it has been open for 30 days with no activity.

<!-- gh-comment-id:3561003145 --> @github-actions[bot] commented on GitHub (Nov 21, 2025): This issue is stale because it has been open for 30 days with no activity.
Author
Owner

@github-actions[bot] commented on GitHub (Dec 5, 2025):

This issue was closed because it has been inactive for 14 days since being marked as stale.

<!-- gh-comment-id:3615025407 --> @github-actions[bot] commented on GitHub (Dec 5, 2025): This issue was closed because it has been inactive for 14 days since being marked as stale.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/1Remote#3720
No description provided.