Fix OneDrive Crashing When Creating a Share Link in File Explorer
Question details
The user needs to resolve an issue where the OneDrive application crashes and its notification icon disappears from the system tray when attempting to create a share link via the File Explorer context menu.

- Product
- Microsoft OneDrive
- Device & OS
- Windows
- Scenario
- Attempting to share a file directly from the local OneDrive sync folder using the right-click 'Share' context menu in Windows File Explorer.
- Observed behavior
- OneDrive immediately closes and crashes, and the cloud notification icon disappears from the taskbar without generating the share link.
Ensure that your Windows operating system is fully updated, and try using the OneDrive web interface to share your files as a temporary workaround while troubleshooting the desktop client.
Clear File Explorer History and Disable Panes
Clearing the File Explorer cache and disabling preview panes can resolve system conflicts that cause the context menu to crash the OneDrive process.
File Explorer stores a history of recently accessed files and folders. Corrupted cache data here can interfere with context menu extensions like OneDrive's share feature. Additionally, the Preview and Details panes in File Explorer sometimes lock files, causing the sharing process to fail and the app to crash.
Open File Explorer, click on the 'View' tab at the top, and select 'Options' to open the Folder Options window.
Under the 'General' tab, locate the 'Privacy' section at the bottom and click the 'Clear' button next to 'Clear File Explorer history'.
Go back to the 'View' tab within the main File Explorer window and ensure that both the 'Preview pane' and 'Details pane' are toggled off.
Restart your computer to apply the changes, then right-click a file in your OneDrive folder and select 'Share' to see if the issue is resolved.

Test File Sharing Outside the OneDrive Folder
Determine if the sharing crash is isolated to the OneDrive sync directory or if it is a broader Windows File Explorer issue.
Compare and Verify OneDrive Build Versions
Version mismatches, particularly in enterprise or Citrix virtual environments, can cause OneDrive context menu failures. Ensuring consistent builds can fix the crash.
Share Files Seamlessly with WPS Office
If OneDrive integration issues continue to disrupt your workflow, consider switching to WPS Office. It offers a lightweight, highly compatible alternative to Microsoft Office, complete with its own built-in cloud storage and secure file-sharing capabilities—all for free.
- 1. Open your file: Launch WPS Office and open the document, spreadsheet, or presentation you wish to share.
- 2. Click Share: Click the 'Share' button located in the top right corner of the application interface.
- 3. Generate Link: Select 'Create Link', set your desired view or edit permissions, and copy the link to share with collaborators instantly.

Frequently Asked Questions
Why does OneDrive disappear from the taskbar when I click Share?
This usually indicates that the background process (OneDrive.exe) has crashed unexpectedly. This can be triggered by a corrupted File Explorer cache, conflicting preview panes, or a bug in a specific build update of the OneDrive sync client.
How can I share a OneDrive file if File Explorer keeps crashing?
You can bypass File Explorer entirely by logging into your account on the OneDrive web interface (onedrive.live.com). Simply right-click the file within your browser and select 'Share' to generate a link without triggering the local Windows crash.
Are Citrix environments known to cause OneDrive sharing issues?
Yes, version mismatches between local desktop OneDrive clients and Citrix virtual environments can lead to context menu conflicts. Ensuring both environments use the exact same stable build of OneDrive often resolves the discrepancy.
Does clearing the File Explorer cache delete my actual files?
No. Clearing the File Explorer history through Folder Options only removes the temporary record of recently opened files and folders from the Quick Access view. It is completely safe and does not modify your saved data.




