0x8004de40
OneDrive Software
Severity: MinorWhat Does This Error Mean?
OneDrive 0x8004de40 with the message 'There was a problem connecting to OneDrive' means the app could not reach login.microsoftonline.com or oneclient.sfx.ms during sign-in.
It is a network reachability error, not an account or password problem.
Most cases trace to a proxy, captive portal, or VPN.
The fix is to test connectivity, then either clear the proxy or move to a network that allows the endpoints.
Affected Models
- OneDrive on Windows 10
- OneDrive on Windows 11
- OneDrive on macOS
- OneDrive personal and OneDrive for Business
Common Causes
- Captive portal at hotel, coffee shop, or airport not yet accepted
- Corporate proxy blocking OneDrive endpoints
- VPN routing broken or split-tunnel misconfigured
- Outdated TLS settings (TLS 1.2 disabled) on older Windows builds
- DNS not resolving login.microsoftonline.com
How to Fix It
-
Check basic internet.
Open a browser and load a website.
If pages don't load, fix the network first — OneDrive will follow.
If pages do load, you're online and the issue is specific to OneDrive's endpoints. -
Sign in to Office.com in a browser.
Open office.com and try to sign in with the same account.
If browser sign-in works, the OneDrive desktop app is the problem — usually a proxy or TLS setting.
If browser sign-in fails too, the credential or tenant is the problem, not the app. -
Reset OneDrive.
Press Win+R, paste this and hit Enter:
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
OneDrive will shut down for 1-2 minutes, then auto-relaunch.
If it doesn't, run %localappdata%\Microsoft\OneDrive\onedrive.exe to start it.
This rebuilds the local config without touching your files. -
Force enable TLS 1.2 on older Windows.
On Windows 7 or older 8.1 builds, TLS 1.2 may be off by default.
Microsoft has a registry update for this — search 'TLS 1.2 update for Windows' on Microsoft's site.
On Windows 10 and 11, TLS 1.2 is on by default and this step is rarely needed. -
Disable VPN and proxy temporarily.
If sign-in succeeds without VPN, the VPN is the problem — split-tunnel OneDrive's endpoints (Microsoft publishes them) and you'll be fine.
If sign-in succeeds without proxy, ask IT for the correct PAC file.
Frequently Asked Questions
Will resetting OneDrive delete my files?
No.
The reset only clears local settings and sync state.
Your files in the OneDrive folder stay where they are; cloud copies are untouched.
After the reset, OneDrive re-checks every file against the cloud — that takes a while if you have many files but it does not delete anything.