How to Fix OneDrive Sign-In Error 0x8004de40
Question details
The user is unable to sign in to OneDrive, receiving error code 0x8004de40 with a message stating there is a problem connecting to the internet. Standard resetting and reinstalling efforts fail across multiple computers.
- Product
- Microsoft OneDrive
- Device & OS
- not provided
- Scenario
- Attempting to sign in to the OneDrive desktop application to access cloud files.
- Observed behavior
- OneDrive displays 'There was a problem connecting to OneDrive' with error 0x8004de40. The reset process fails, and reinstalling the app does not resolve the connectivity issue.
Verify that your device is connected to a stable internet network and check the Microsoft Office 365 Service Health dashboard to ensure there are no ongoing server outages affecting OneDrive.
Perform a Clean Reinstallation and Reset
Since generic reset methods may fail for this specific error, performing a complete reinstallation combined with the official reset command can help clear corrupted application states.
If the standard reset fails, removing the application entirely before attempting a fresh reset can sometimes bypass the corrupted local cache.
Open your system settings, navigate to the installed applications list, locate Microsoft OneDrive, and select 'Uninstall'.
Download the latest version of the OneDrive client from the official Microsoft website and complete the installation process.
Press Windows Key + R to open the Run dialog, type '%localappdata%\Microsoft\OneDrive\onedrive.exe /reset', and press Enter to reset the application state.
Investigate Broader Network or Service Issues
Error 0x8004de40 often points to a larger network configuration or Azure Active Directory connectivity problem when multiple computers are affected.
Switch to WPS Office for Reliable Document Management
If persistent OneDrive and Microsoft Office errors are disrupting your productivity, consider switching to WPS Office. It offers a lightweight, highly compatible alternative with built-in cloud synchronization that is free and easy to use.

Frequently Asked Questions
Will resetting OneDrive delete my stored files?
No, resetting OneDrive only clears the application's local sync settings and state cache. Your files stored in the cloud are perfectly safe and will resync once you sign in.
What does OneDrive error code 0x8004de40 indicate?
This specific error code indicates that the OneDrive app cannot connect to Microsoft servers. It is usually caused by network instability, restrictive proxy settings, or an ongoing Microsoft service outage.
Why does the OneDrive reset command fail to execute?
The reset command may fail if the core application files are deeply corrupted, if there are restrictive local permissions, or if the underlying network issue prevents the app from authenticating its reset state with the server.




