Software⏱️ 2 min read📅 2026-05-31
How to Fix 0x80070021 Error – HTTP Error 500.19 and error code : 0x80070021
Quick Answer: Check the .NET Framework version and ensure it matches between Visual Studio 2013 and IIS. Try setting the 'Load Configuration' option to 'Always' in IIS.
📋 Table of Contents
HTTP Error 500.19 and error code 0x8007 0x80070021 are commonly caused by a mismatch between the .NET CLR version used in the web API project and the one installed on the local IIS server.
🛑 Root Causes of the Error
- Using .NET Framework 4.0 in Visual Studio 2013, but IIS is running .NET Framework 4.5 or later.
🛠️ Step-by-Step Verified Fixes
Method 1: CLR Fix
- Step 1: Open the project properties in Visual Studio and change the .NET Framework version to match the IIS version.
Method 2: Web.config Rewrite
- Step 1: Open the web.config file and add the following configuration to match the IIS version:
<system.webServer>
💡 Conclusion
By following these steps, you should be able to resolve the HTTP Error 500.19 and error code 0x8007 0x80070021 issue.
❓ Frequently Asked Questions
Using .NET Framework 4.0 in Visual Studio 2013, but IIS is running .NET Framework 4.5 or later.
Step 1: Open the project properties in Visual Studio and change the .NET Framework version to match the IIS version.
Step 1: Open the web.config file and add the following configuration to match the IIS version:
By following these steps, you should be able to resolve the HTTP Error 500.19 and error code 0x8007 0x80070021 issue.
🛠️ Related Fixes
How to Fix: Pc crashes shortly after launching game (rainbow
Pc crashes shortly after launching game, possible cause: outdated grap
How to Fix: Installing an APK on a locked down phone
Installing an APK on a locked down phone: Try using a rooted device, e
How to Fix: FPS drops
FPS drops in games can be caused by high system resource usage, outdat