[Fix] VCLibs UWPDesktop 14.0.33728.0 x64 “Bad Image” Error

Summary: In this article, we’ll learn how to repair the VCLibs UWPDesktop 14.0.33728.0 x64 modules. The procedure is similar to the VCLibs x64 14.0.33519.0 “Bad Image” error fix we saw in an earlier article.

When you launch Notepad, Store, Paint, Photos, or any other Store app on a Windows 11 system, the “Bad Image” error may occur.

C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x64__8wekyb3d8bbwe\MSVCP140.dll is either not designed to run on Windows or it contains an error. Try reinstalling the program again using the original installation media or contact your system administrator or the software vendor for support. Error status 0xc0000020.

vclibs uwpdesktop 33728 bad image

The error may also occur for other DLL files in the above folder, such as:

concrt140.dll
mfc140.dll
MFC140CHS.dll
MFC140CHT.dll
MFC140DEU.dll
MFC140ENU.dll
MFC140ESN.dll
MFC140FRA.dll
MFC140ITA.dll
MFC140JPN.dll
MFC140KOR.dll
MFC140RUS.dll
mfc140u.dll
MFCM140.dll
MFCM140U.dll
msvcp140.dll
msvcp140_1.dll
msvcp140_2.dll
msvcp140_atomic_wait.dll
msvcp140_codecvt_ids.dll
vcamp140.dll
vccorlib140.dll
vcomp140.dll
vcruntime140.dll
vcruntime140_1.dll

Cause

Error 0xc0000020 (“STATUS_INVALID_FILE_FOR_SECTION”) means “The attributes of the specified mapping file for a section of memory cannot be read”. It indicates a bad file.



This happens if some of the above DLLs are corrupt and show as 0-byte files in the “Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x64__8wekyb3d8bbwe” folder.

Resolution

To resolve the error, reinstall the Microsoft.VCLibs.140.00.UWPDesktop (x64) package version 14.0.33728.0 using the following method:

  1. Download AdvancedRun from Nirsoft and open a TrustedInstaller Command Prompt. (See this screenshot)
  2. In the TrustedInstaller Command Prompt, run these commands:
    cd /d C:\Program Files\WindowsApps\
    
    ren Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x64__8wekyb3d8bbwe VCLibs140UWP.OLD
    
    exit
  3. Restart Windows.
  4. Download Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x64__8wekyb3d8bbwe and save it to a folder — e.g., C:\Appx.
  5. Open admin PowerShell and run the following command:(assuming you’ve saved the .appx package in the folder “C:\Appx”.)
    Add-AppxPackage "C:\Appx\Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x64__8wekyb3d8bbwe.appx"
  6. Restart Windows.
  7. Try to launch the Microsoft Store app. Wait for a minute or so. The Microsoft Store app will reinstall itself. It also automatically re-registers the Microsoft.VCLibs.140.00.UWPDesktop (x64) package.microsoft store reinstalled - notification

You should now be able to launch Store, Notepad, Windows Security, Phone Link, and all other apps that depend on Microsoft.VCLibs.140.00.UWPDesktop (x64) package.


One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded Winhelponline.com in 2005.

5 thoughts on “[Fix] VCLibs UWPDesktop 14.0.33728.0 x64 “Bad Image” Error”

  1. When we tried to add the package, the DLL’s were still 0 bytes and it did not work. Instead we deleted the Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x64__8wekyb3d8bbwe and Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x86__8wekyb3d8bbwe directories, then rebooted.
    When we ran notepad, mspaint, photos, etc. The programs worked and we think its was because this programs referenced the older versions of the DLL’s in Microsoft.VCLibs.140.00.UWPDesktop_14.0.33519.0_x64__8wekyb3d8bbwe and Microsoft.VCLibs.140.00.UWPDesktop_14.0.33519.0_x86__8wekyb3d8bbwe directories (older versions).

    Reply
  2. we deleted the Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x64__8wekyb3d8bbwe and Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x86__8wekyb3d8bbwe directories, then rebooted.
    When we ran notepad, mspaint, photos, etc. The programs worked and we think its was because this programs referenced the older versions of the DLL’s in Microsoft.VCLibs.140.00.UWPDesktop_14.0.33519.0_x64__8wekyb3d8bbwe and Microsoft.VCLibs.140.00.UWPDesktop_14.0.33519.0_x86__8wekyb3d8bbwe directories.

    Reply
    • This process will work.
      Step 1: Take Ownership of the Folders
      Open File Explorer:

      Navigate to the folder C:\Program Files\WindowsApps.
      Change Ownership:

      Right-click on the Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x64__8wekyb3d8bbwe folder (or its parent folder).
      Select “Properties.”
      Go to the “Security” tab and click “Advanced.”
      Click on “Change” next to the owner label at the top.
      Enter your user account name, click “Check Names” to verify, then click “OK.”
      Enable “Replace owner on subcontainers and objects,” then click “OK” and confirm any prompts.
      Grant Full Control:

      After changing ownership, still in the “Security” tab, click “Edit.”
      Select your user account, and check the “Full control” box.
      Click “OK” to apply.
      Step 2: Delete the Folders
      Path “C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x64__8wekyb3d8bbwe”
      Path “C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x86__8wekyb3d8bbwe”
      For my case

  3. I tried and it worked but I have to grant permission in PowerShell.

    Get-AppxPackage -AllUsers | where-object {$_.name -eq "Microsoft.VCLibs.140.00.UWPDesktop"} | Remove-AppxPackage

    And in this code I had to write the “.Appx” extension or it says file not found.

    Add-AppxPackage "C:\Appx\Microsoft.VCLibs.140.00.UWPDesktop_14.0.33728.0_x64__8wekyb3d8bbwe.Appx"

    Thanks : )

    Reply

Leave a Comment