Onedrive Error code 0x8004de40 : Steps to Fix

Onedrive is a Cloud Storage facility that Microsoft provides to save your files online.

If you have a Onedrive account, you can upload your files and photos and access them from any device and anywhere in the world.

It is a Great Utility for many Microsoft Windows users. But, many users have been facing issues while signing in to one drive. An error is shown on the screen, which says the following:


OneDrive Can’t sign in. Error 0x8004de40

Login was either interrupted or unsuccessful. Please try logging in again. (Error Code: 0x8004de40)


How do i Fix Onedrive error code 0x8004de40


As the error message says, The login attempt was unsuccessful so try and login again if it works. Most probably, it won’t work.

This takes us to check our internet connection settings, and as a last resort, we will have to reset Onedrive on our windows Computer.

Let’s Get started with fixing this issue. You will make sure of a few things before moving forward like:

  1. You have a stable internet connection.
  2. You don’t use any VPN.
  3. Check if third-party antivirus is causing problems.


Solution 1: Enable Security Protocol to fix Onedrive problem


First, we will enable TLS 1.0, TLS 1.1, and TLS 1.2 from Internet Properties settings. These are security protocols required to be enabled so that your Onedrive client functions appropriately.

Follow the below steps to Enable Security Protocol.

  • Search Control Panel in the search bar and open it.
  • Click on Network and Internet
  • Now, click on the Internet option to open a new window like the below picture.
  • Click on Advanced Tab and scroll down.
  • Check the boxes next to TLS 1.0, TLS 1.1, and TLS 1.2
  • Click on Apply and OK.


Internet options


Now Open the Onedrive app and see if this has fixed the 0x8004de40 Error for you.
Jump to Solution no. 2 if you need help.


Solution 2: Reset Winsock to get rid of the 0x8004de40 Error.


If the above solution did not work, you might want to Reset Winsock and see if it helps.
Resetting Winsock helps in Fixing network-related issues you might be having on your system. You will try it and see if it helps fix this onedrive login error 0x8004de40 as well.


Reset winsock


To Reset Winsock, Open Command prompt or Windows PowerShell as admin.

Type “netsh winsock reset catalog” and press enter.

Let it finish and then restart your computer.

Go to Onedrive and see if you can log in successfully or not.


Solution 3: Reset Onedrive App to solve Error 0x8004de40


If you haven’t fixed the issue yet, you might have to reset your Onedrive app. To do so, follow the below steps by step guide.

  • Open Settings by pressing Windows + I keys.
  • Click on Apps, now search Onedrive from the list of apps installed.
  • Select Onedrive and click Advanced Options.
  • Scroll down and click Reset. Confirm again if asked.

Let it complete and see if resetting Onedrive has finally fixed your issue of Error code 0x8004de40.

Let us know in the comments below about which solution finally worked for you so that other readers can try it too.

Leave a Comment