0X00040101

DRAGDROP_S_CANCEL (0X00040101) — Why drag-drop fails in Windows 10/11

Windows Errors Intermediate 👁 0 views 📅 Jun 10, 2026

This happens when Windows Explorer cancels a drag-drop operation due to a stale shell extension or broken clipboard chain. The fix is to kill the responsible process.

You're dragging a file from one folder to another in Windows Explorer. The cursor shows the little 'move here' arrow. You release the mouse button. Nothing happens. Or worse, you get an error box that says something about the operation being canceled. If you look in Event Viewer under Application logs, you'll see the exact error: 0X00040101 with the description DRAGDROP_S_CANCEL. This isn't a crash, it's a cancellation signal sent by Explorer itself or a shell extension that intercepted the drag-drop event and told the system to abort.

What's actually happening here is that Windows uses a COM-based drag-drop protocol. When you start dragging, Explorer calls DoDragDrop which hands control to a shell extension (usually a context menu handler or a thumbnail provider). That extension can return DRAGDROP_S_CANCEL to signal 'I don't want this to complete.' The most common trigger is a corrupted or misbehaving third-party shell extension — often from cloud storage apps (Dropbox, Google Drive, OneDrive), archive managers (7-Zip, WinRAR), or older video editing tools that hook into Explorer. Another trigger is a stale clipboard monitor that holds a reference to the drag source, causing the drag-drop chain to deadlock.

Root cause simplified

Explorer starts the drag. A shell extension (like a 'copy to' menu handler) is supposed to process the drop target. That extension is buggy or its DLL is unloaded mid-drag. COM returns DRAGDROP_S_CANCEL because the extension refused to complete the operation. The system interprets this as a cancellation and shows the error.

Fix: Kill the offending shell extension

Skip reinstalling Explorer or running SFC — those rarely fix this. The real fix is to identify and disable the bad extension.

  1. Open a fresh Explorer window. Close all other Explorer windows. Press Win + E to open one clean window.
  2. Enable shell extension logging. Open Registry Editor (regedit) as admin. Go to:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
    Create a DWORD (32-bit) value named LogShellEvents and set it to 1. Restart Explorer (taskkill /f /im explorer.exe then explorer.exe).
  3. Reproduce the drag-drop failure. Drag a file from one folder to another where the error appeared. The error should show again.
  4. Check the log. Look in %TEMP%\ShellEvents.log. Open it in Notepad. Search for 'DRAGDROP_S_CANCEL' or 'canceled'. You'll see a line like:
    ShellExtension: CLSID {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} returned DRAGDROP_S_CANCEL
    Copy that CLSID (the GUID in curly braces).
  5. Find which extension owns that CLSID. Open Registry Editor and search (Ctrl+F) for that CLSID under HKEY_CLASSES_ROOT\CLSID. Look at the InprocServer32 subkey — that shows the DLL path. Common culprits:
    • DropboxExt.dll (Dropbox)
    • 7-zip.dll (7-Zip shell extension)
    • ShellExt.dll from old video editors
  6. Disable the extension. The safest way is to uninstall the parent software. If you want to keep the software, disable just the shell extension. Use ShellExView (NirSoft free tool) — sort by Type, find the extension by the DLL path, right-click and select 'Disable'. Or you can rename the DLL (e.g., DropboxExt.dll.old) so it doesn't load.
  7. Reboot. After disabling, restart Windows (or just log out and back in).

If that doesn't work: check clipboard chain

Sometimes the drag-drop cancellation comes from a clipboard viewer that's holding an open reference. Open Task Manager, go to Details tab, end any process named clip.exe or clipbrd.exe if they're running. Also check for clipboard managers like Ditto or ClipClip — try closing them temporarily.

Still failing?

If the error persists after disabling all third-party shell extensions and killing clipboard monitors, you may have a corrupted shell extension registration. Try running this command in an admin PowerShell to re-register all shell COM objects:

Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

That re-registers all Store apps' shell extensions. If it still fails, you likely have a bad Explorer DragDropFlags policy set via Group Policy. Run gpedit.msc and check under User Configuration > Administrative Templates > Windows Components > File Explorer — look for 'Turn off drag and drop' and make sure it's set to 'Not Configured'.

I've seen this exact error with Dropbox's shell extension on Windows 10 22H2 after a Dropbox update. Disabling the DropboxExt64.dll cleared it instantly. The logging trick is the fastest way to nail the culprit without guessing.

This isn't a Windows bug — it's a poorly written shell extension that doesn't handle the drag-drop return value correctly. You fix the extension, you fix the error.

Was this solution helpful?