How to Fix Error Code 0x80070021 (Solved)



RECOMMENDED: Click here to fix Windows errors and optimize system performance

Many Windows users encounter the error 0x80070021 when trying to copy a file from one location to another. Other users see this error when they try to host a WCF service in an ASP.NET application. However, in most cases, the problem is reported when users try to manage Outlook data files (.pst and.ost).

Microsoft Outlook 0x80070021 An error usually occurs when you use Outlook Express. This error makes your Outlook inaccessible. Users may find errors such as “the process cannot access the file because another process has locked a part of the file. So before moving on to methods, we should find the reasons for the Outlook 0x80070021 error.

What are the reasons for the error 0x80070021?

There are several reasons for the error 0x80070021 and some of them are:

  • This type of error is usually displayed when MS Outlook was not closed correctly last time.
  • It is possible that Outlook will still run in the background even if it is closed.

If the system is installed with some Outlook-based add-ins. it will continue to run after the Outlook window application closes.

Enabling HTTP activation via.NET Framework 4.5 Advanced Services

Try to unlock the relevant IIS configuration settings (7.5) at the server level as follows:



August 2020 Update:

We now recommend using this tool for your error. Additionally, this tool fixes common computer errors, protects you against file loss, malware, hardware failures and optimizes your PC for maximum performance. You can fix your PC problems quickly and prevent others from happening with this software:

  • Step 1 : Download PC Repair & Optimizer Tool (Windows 10, 8, 7, XP, Vista – Microsoft Gold Certified).
  • Step 2 : Click “Start Scan” to find Windows registry issues that could be causing PC problems.
  • Step 3 : Click “Repair All” to fix all issues.

download



  1. Open IIS Manager
  2. Select the server from the Connections pane.
  3. Open the configuration editor from the main menu.
  4. From the Sections drop-down list, select the section to unlock, for example system.webServer > defaultPath.
  5. In the right pane, click Unlock Attribute.
  6. Repeat this operation for all other settings that you need to unlock.
  7. Restart IIS (optional) – Select the server in the Connections pane, then click Restart in the Actions pane.

Using System Restore

system restore1

  1. Log in to your system as an administrator.
  2. Click the Start button on the desktop >> Click All Programs >> Windows Accessories >> System Tools >> System Tools >> System Tools >> System Restore.
  3. Now select “Restore my computer at an earlier time”.
  4. Under the option, click on a “Restore Point” in this list, select the last recovery option of the system, and then click Next.
  5. In the confirmation window, click on Next.
  6. Reboot your system when the recovery process is complete.

Manual installation of the ASP.NET Role Service for IIS

a. Open Server Manager > Roles and search for the Web Server Role (IIS). Right-click and select Add Role Services.

b. Locate and highlight the element named ASP.NET in the IIS Role Application Development section.

c. Click Next and Exit to install these components.

Close Outlook with the Task Manager

If you see the error 0x80070021 when you try to copy Outlook data files to another location (USB stick, OneDrive, various hard drives, etc.), it is likely that your operating system will not let you complete the process because the file is still used by Outlook.

This happens because Outlook tends to run in the background even after the traditional shutdown. In most cases, it is reported that older versions of Outlook behave in this way.

https://stackoverflow.com/questions/20048486/http-error-500-19-and-error-code-0x80070021



RECOMMENDED: Click here to troubleshoot Windows errors and optimize system performance