Do you get a “There was a problem connecting to OneDrive” error with the code 0x8004de40 on your Windows PC? OneDrive may be facing issues connecting to the cloud, leading to the above error. You can apply a few solutions to resolve your error and return to your OneDrive app activities. Here’s how to do that on Windows 11 and Windows 10.

OneDrive displays a 0x8004de40 error for many reasons. Your internet connection may not be working, you may have not enabled the required TLS versions, your firewall may have blocked OneDrive’s access to the internet, and more.

Table of Contents
    How to Fix a OneDrive Error 0x8004de40 image 1

    Check Your Internet Connection

    The most common reason you get a OneDrive error 0x8004de40 is that your internet connection isn’t working. Your connection may have stopped working, causing OneDrive not to establish a link to the cloud.

    In this case, check and ensure your internet connection is working. You can do that by opening a web browser on your computer and accessing a site. If your connection has issues, your web browser won’t load your site.

    You can try to resolve your internet problems using basic fixes like rebooting your router. If that doesn’t work, get in touch with your internet service provider (ISP) for more help.

    Restart Your Windows PC

    The next fix on the list is to reboot your PC. OneDrive or your computer may be experiencing a minor glitch, which you can resolve by turning your PC off and back on. This closes all the services running on your PC and reloads those services, fixing many minor problems.

    You can reboot your Windows PC by opening the Start menu, selecting the Power icon, and choosing Restart.

    How to Fix a OneDrive Error 0x8004de40 image 2

    Launch OneDrive when your PC turns on and see if the app connects to the internet.

    Enable the Required TLS Versions on Your Windows PC

    Microsoft recommends enabling various TLS versions on your PC to resolve a 0x8004de40 error in OneDrive. It’s easy to turn on these TLS versions on your PC.

    1. Open the Run dialog box by pressing Windows + R.
    2. Type the following in the box and press Enter: inetcpl.cpl
    3. Open the Advanced tab on the window.
    4. Enable the following TLS versions on the list. You may have to scroll down to view these versions.

      Use TLS 1.0
      Use TLS 1.1
      Use TLS 1.2
    How to Fix a OneDrive Error 0x8004de40 image 3
    1. Select Apply followed by OK to save your changes.
    2. Reboot your PC and open OneDrive.

    Reset Winsock to Fix a OneDrive Error Code 0x8004de40

    Winsock is an API that lets your internet-enabled apps, like OneDrive, talk to the underlying communication protocols, such as TCP/IP. It’s worth resetting this API when you experience issues connecting OneDrive to the cloud.

    1. Open the Start menu, find Command Prompt, and select Run as administrator.
    2. Choose Yes in the User Account Control prompt.
    3. Enter the following command in CMD and press Enter:
      netsh winsock reset
    How to Fix a OneDrive Error 0x8004de40 image 4
    1. Close Command Prompt and launch OneDrive.

    Disable the Proxy on Your PC

    It’s worth turning off your PC’s proxy option when you get a 0x8004de40 error in OneDrive. Your proxy may be affecting OneDrive’s connection to the internet, which you can resolve by disabling the feature.

    On Windows 11

    1. Open Settings by pressing Windows + I.
    2. Select Network & internet in the left sidebar.
    3. Choose Proxy on the right pane.
    4. Turn off the Automatically detect settings option.
    How to Fix a OneDrive Error 0x8004de40 image 5
    1. Select Set up next to Use a proxy server.
    2. Disable the Use a proxy server option and select Save.
    How to Fix a OneDrive Error 0x8004de40 image 6
    1. Reboot your PC and launch OneDrive.

    On Windows 10

    1. Access Settings by pressing Windows + I.
    2. Choose Network & Internet in Settings.
    3. Select Proxy in the left sidebar.
    4. Turn off Automatically detect settings on the right.
    How to Fix a OneDrive Error 0x8004de40 image 7
    1. Disable the Use a proxy server option as well.
    2. Restart your PC and open OneDrive.

    Add OneDrive to Your Firewall’s Safelist

    One reason OneDrive fails to connect to the internet is that your firewall has blocked the app’s connection. In this case, modify your firewall settings so that OneDrive is always allowed to make outgoing and incoming network connections.

    You can do that by adding the OneDrive app to your firewall’s whitelist as follows:

    1. Open the Windows Security app on your PC.
    2. Select Firewall & network protection > Allow an app through firewall in the app.
    How to Fix a OneDrive Error 0x8004de40 image 8
    1. Choose Change settings at the top.
    2. Enable both Private and Public checkboxes for Microsoft OneDrive on the list.
    How to Fix a OneDrive Error 0x8004de40 image 9
    1. Select OK at the bottom.

    Turn Off Your Computer’s Third-Party Antivirus Program

    If you’ve installed a third-party antivirus program on your Windows PC, that program may be interfering with OneDrive’s working. That may be why the app can’t connect to the internet and load your files.

    In this case, turn off the real-time protection in your antivirus app and see if that resolves your issue. If your issue persists, uninstall your antivirus program and see if that fixes the problem.

    Reset OneDrive on Your Windows PC

    If nothing else works, bring your OneDrive app to the factory settings to possibly fix your issue. This method should work if your app itself has a problem that is causing the app not to connect to the internet.

    You don’t lose your files stored on OneDrive when you reset the app. However, the process will erase your custom preferences in the app.

    1. Open Run by pressing Windows + R.
    2. Type the following in the Run box and press Enter:

      %localappdata%MicrosoftOneDriveonedrive.exe /reset
    How to Fix a OneDrive Error 0x8004de40 image 10
    1. If you receive an error saying “Windows cannot find…,” use the following commands. One of these commands will reset your OneDrive app.

      C:Program FilesMicrosoft OneDriveonedrive.exe /reset
      C:Program Files (x86)Microsoft OneDriveonedrive.exe /reset
    2. When the reset process is finished, open your PC’s Start menu, find OneDrive, and launch the app.

    Resolve Your OneDrive Connectivity Errors With Ease

    OneDrive’s connectivity errors prevent you from uploading and downloading files from your cloud storage. You can make a few changes in the app and on your PC to potentially fix your issue. The methods outlined above help you do just that.

    Once you’ve resolved your OneDrive error, you can upload as well as download any file you want from your online storage. Enjoy!

    Leave a Reply

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