Fix Onedrive error code 0x8004de40 with these solutions

Tashreef Shareef
by Tashreef Shareef
Windows & Software Expert
0 Comments
Download PDF
Affiliate Disclosure

OneDrive error code 0x8004de40

While trying to sign in to your OneDrive desktop client, you may encounter OneDrive error code 0x8004de40. The full error reads “There was a problem connecting to OneDrive” and offers an try again option.

This error can occur due to several reasons including incorrect Internet configuration and corrupted OneDrive installation,

If you are also troubled this error, here a couple of troubleshooting tips to help you fix OneDrive error code 0x8004de40 in Windows.

How do I fix OneDrive error code 0x8004de40?

1. Change Internet Properties

OneDrive error code 0x8004de40

  1. Press Windows Key + R to open Run.
  2. Type inetcpl.cpl and click OK to open the Internet Properties window.
  3. On the Internet Properties window, open the Advanced tab.
  4. Under Settings, scroll down and find the following options and check their boxes:
    Use TLS 1.0
    Use TLS 1.1 
    Use TLS 1.2
  5. Click Apply and OK to save the changes.

The TLS 1.0 and above is a security protocol that helps in establishing encryption channels over the computer network. Your OneDrive client may not function properly when these protocols are disabled.


2. Configure internet proxy settings

OneDrive error code 0x8004de40

  1. Press Windows Key + R to open Run.
  2. Type inetcpl.cpl and click OK to open the Internet Properties window.
  3. On the Internet Properties window, open the Connection tab.
  4. Click on LAN Settings.
  5. Under LAN Settings, uncheck “Use a proxy server for your LAN” option.
  6. Next, check the “Automatically detect settings” option.
  7. Click Apply and OK to save the changes.

Proxy servers allow you to bypass certain restrictions applied by your ISP while some organization use them to establish a secure connection to their network. However, at times incorrect proxy settings can create issues with OneDrive account, resulting in a connection error.


Proxy server issues are pretty annoying. Make them a thing of the past with the help of this guide.


3. Reset OneDrive client

OneDrive error code 0x8004de40

  1. Click on Start and select Settings.
  2. Click on Apps.
  3. Select Apps and Features.
  4. Search for OneDrive and select it.
  5. Click on Advanced Options.
  6. In the OneDrive advanced options window, scroll down and click on Terminate.
  7. Scroll down again and click on Reset.
  8. Click on Reset to confirm the action.
  9. Close Windows Setting window and relaunch OneDrive and check for any improvements.

An alternative way to reset OneDrive 

  1. Press Windows Key + R to open Run.
  2. Type the following command in the Run box and click OK.
     %localappdata%\Microsoft\OneDrive\onedrive.exe
  3. Wait for the command to execute and relaunch OneDrive desktop client. Check if you can establish a connection now.

Resetting the OneDrive client can help you resolve any issues that may occur due to bad cache and configuration.


4. Reset Winsock properties

OneDrive error code 0x8004de40

  1. Type cmd in the search box.
  2. Right-click on Command Prompt option and select Run as Administrator.
  3. In the Command Prompt, type the following command hit Enter:
    Netsh winsock reset catalog 
  4. Once the command is successfully executed, close the command prompt and restart your PC.

If you’re having trouble accessing Command Prompt as an admin, then you better take a closer look at this guide.

Winsock reset usually helps with resolving network problems on your Windows computer. Running the above-given command should help you resolve OneDrive network related issues.

Even after following all the steps in this article, the OneDrive error code 0x8004de40  persists, launch the Microsoft Store and check if an update is available for the OneDrive client.

Also, download and install any pending Windows updates by going to Start > Settings > Update and Security > Windows Updates.

For any other questions or suggestions, don’t hesitate to leave them in the comments section below and we’ll be sure to check them out.

RELATED STORIES YOU MAY LIKE: