How to Fix OneDrive Error Code 0x8004de40?

Error Code 0x8004de40 OneDrive Fix

When it comes to the best cloud storage service, OneDrive is among the few options that come in our mind. OneDrive is owned and managed by Microsoft Inc. OneDrive provides free storage of 5 GB with every Microsoft (Outlook/Hotmail/Live) account. You can use it to save your important data.

Since it is human-made software, it might have some bugs, and flaws as well. And one of these flaws is Error 0x8004de40. This is an error code that usually appears when logging into the desktop client. The exact errors look like this,

There was Problem Connecting to OneDrive

There was Problem Connecting to OneDrive

In this article, we showed several methods that can be used to fix the OneDrive Error Code 0x8004de40.

Fix OneDrive Error Code 0x8004de40

Here are Few Potential Solutions to Fix OneDrive Error Code 0x8004de40

Check Internet Connectivity

As per Microsoft’s Support team, the Error Code 0x8004de40 occurs when the user has a bad or weak internet connection. So, the first thing we are going to do is to check whether our internet is working properly or not.

First, if you are using a wired internet connection then check the plug and whether it is properly connected or not. Plug out the LAN cable from the RJ45 port and then plug in again, and reset the router using the physical button in the router.

Second, if you are using a wireless connection, means via  WiFi, then try opening a few websites, check your internet speed via third-party tools like or

Enable TLS Settings

TLS or Transport Layer Security is the successor to the old SSL or Secured Socket Layer. In case you don’t know what SSL is then let me explain it via a live example. When you visit a website, you will notice a lock in a green-colored bar in the URL bar, just before the website URL. That lock means the website is secured to put your personal details (if required), and the website is being protected by a 128-bit encryption technique.

Secure SSL Connection

So, in this solution, we are going to enable the TLS, so that the browser connects to the TLS protected websites. Without TLS, OneDrive might be facing a connection error. To do so, follow the below steps,

  • Open the RUN window by pressing the Windows Key + R, simultaneously.
  • Now, type inetcpl.cpl and hit enter to execute the command to open the Internet Properties window.
  • Now, go to Advanced Settings and scroll down to TLS settings, and enable the TLS 1.0, 2.0, and 3.0 settings. And finally, click Apply and then Ok to save the modification.
    Use TLS
  • After that, restart your system and then try opening OneDrive.

Reset Winsock Catalog

Winsock is a method used in Windows OS where it handles all the internal and external internet requests that are being served in a current connection. If there is a problem in the Winsock Catalog, then it can disturb the connectivity of many internet-based processes on a system. So, we are going to reset the settings to the default ones. To do so, follow the below instructions,

  • Press the Search icon located at the taskbar.
    Search Windows
  • Now, search for ‘CMD’ and press the Run as administrator button. On clicking the button, UAC might appear and ask you for administrative permission, press the Yes button when asked for.
  • Now, type the following command and hit enter to execute it.
Netsh winsock reset catalog
Reset Catalog
  • After the successful execution, restart the system and then check whether the problem is solved or not.

Reset OneDrive Client

The last option is to reset the OneDrive client app which is installed on your system to fix the problem. This will be helpful in those cases where you or anyone else disturbed the default OneDrive settings, which ultimately occurring the issue.

  • Open the Setting app from the Start menu.
    Windows Setting
  • Now, go to the Apps sections.
    Windows Apps
  • After opening, you will see the list of all the installed apps on the right side of the window.
     Apps and Features
  • Scroll down to OneDrive, click on it to select it. Then on the Advanced Options.
  • Now, finally, click on the Reset button, this will reset the OneDrive app, and you will have to re-login to use the app.
    OneDrive Settings

Reconfigure Internet Proxy (if applicable)

This solution might not be applicable for all users, but it is worth trying. We are going to reconfigure the Internet Proxy if it is already enabled.

  • Open the RUN window by pressing the Windows Key + R, simultaneously.
  • Now, type inetcpl.cpl and hit enter to execute the command to open the Internet Properties window.
  • Now, go to the Connection tab and click on the LAN settings button.
    LAN Settings
  • After opening the LAN settings window, check the Automatically detect settings option and uncheck the Use a proxy server for your LAN option.Network Settings
  • Save the modifications by click on the OK button and then restart the system.

Leave a Reply

Your email address will not be published. Required fields are marked *