Fix OneDrive Error Code 0x8004de40 in Win­dows 10

How to Fix OneDrive Error Code 0x8004de40 in Win­dows 11

OneDrive is arguably one of the best cloud storage and backup solutions for Windows computers. Its functionality is limitless and it is as easy to use as it is to configure. Sometimes you will have to face some problems while using it. A common example is error code 0x8004de40, which indicates that the OneDrive app is having connectivity issues. If your OneDrive app is showing this error, we explain three different ways to fix it in the below paragraphs.

There is an attached error code for each OneDrive issue/problem that helps to easily diagnose what went wrong with the app. Below we will explain what causes error 0x8004de40 and how to fix it.

Read: How to Fix OneDrive Stuck on Processing Changes

To learn more about OneDrive error codes, visit the Microsoft Office Help Center. For now, let’s talk about error code 0x8004de40 and its solutions.

Method 1: Check Your Internet Connection

According to Microsoft, error codes 0x8004de40 on OneDrive mean that the app is having trouble connecting to the cloud. And the main reason for this is a poor or unstable internet connection. To clear this error, the first thing to do is to confirm that everything is fine with your internet connection.

If you are accessing the Internet using an Ethernet cable, make sure the cable is securely plugged in. If it is a wireless connection, verify that your router is working properly. You can also try restarting your router. Another way to check that your Internet connection is working fine is to launch your web browser and open a few web pages. If your browser loads the pages successfully, it means that there is no problem with your internet connection. If not, you might want to repair your router or Ethernet connection.

However, if your internet connection is working fine and you can access the internet on your PC with all other apps except OneDrive, then you should try the other methods below to clear the error code 0x8004de40.

Method 2: Reset Windows Sockets (Winsock)

One of the most common and effective troubleshooting solutions for network and connectivity issues on Windows computers is to reset Windows Sockets (abbreviated Winsock). For starters, Winsock is a program — like an intermediary — that makes it easy to connect and exchange data between your computer’s applications/software and your Internet.

In simple words, Winsock is the reason your apps can access the Internet. If your Internet connection is strong and stable but some of your apps can’t access the network, resetting Winsock may help resolve the issue.

The 0x8004de40 error stems from OneDrive’s inability to connect to the Internet, and a Winsock reset should fix any network issues affecting the app. Follow the steps below to reset your PC’s Windows socket and get your OneDrive working again.

Step 1: Press Windows Key + X shortcut to open the Windows Quick Access menu.

Step 2: Tap on Command Prompt (Admin) and give administrative access to the app. This will launch the Windows Command Prompt interface.

Step 3: In the command prompt terminal type netsh Winsock reset catalog command and press Enter button. This will reset your computer’s Windows Sockets and resolve connectivity issues.

Step 4: Restart your computer to complete the Winsock reset.

Try signing in to your OneDrive after restarting your computer, and error code 0x8004de40 should no longer appear.

Method 3: Reset OneDrive

When an app or program on your Windows PC starts behaving poorly or acting abnormally, one of the quickest solutions is to reset the app. This returns the app to the default state when you recently installed it on your computer.

Resetting the OneDrive app can also help clear the 0x8004de40 error, and here’s how.

Step 1: Press Windows Key + R on your keyboard to launch the Run Windows dialog box.

Step 2: Enter or paste this command in the box provided% localappdata% \\ Microsoft \\ OneDrive \\ onedrive.exe / reset and press Enter or press OK on your keyboard. This command will reset your OneDrive app.

Step 3: Launch OneDrive after the reset process and it should work fine without any error messages. You can also paste this command% localappdata% \\ Microsoft \\ OneDrive \\ onedrive.exe into the Run dialog box and press OK to launch OneDrive quickly.

We also recommend that you restart your computer after resetting the OneDrive app. This means that you may have to set up the OneDrive app from the beginning, i.e. re-enter your login details and reconfigure your preferences. The good thing is that resetting the app clears OneDrive error 0x8004de40.


If connectivity error code 0x8004de40 is causing you trouble using the OneDrive app on your Windows computer or signing in, one of the troubleshooting methods above should help you resolve it. If there are other OneDrive issues that you need help with, we have some OneDrive tutorials that can help. check them out.

Call Now