Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / Windows 10 / The Application Failed To Start Because Its Side-by-Side Configuration is Incorrect

March 11, 2024

The Application Failed To Start Because Its Side-by-Side Configuration is Incorrect

If you see the “The application has failed to start because its side-by-side configuration is incorrect” error when trying to start an app in Windows, this means that the program cannot start due to missing dependencies. The components required to run the app are damaged or not installed on the computer. In this article, we’ll show how to check an application’s manifest file and resolve dependencies by finding a library or a package to be installed for the app to start correctly.

Most often the problem occurs when running portable apps or games because they use libraries of the Microsoft Visual C++ Redistributable (vc_redist.x86.exe, vc_redist.x64.exe) that are not installed on a computer or corrupted. However, before installing all Visual C++ Redistributable versions on your computer without thinking, we will try to find out exactly which library the app needs by its manifest file.

Error: "The application has failed to start because the side by side configuration is incorrect" then starting program in Windows

Contents:
  • How to Analyze an App Manifest in Windows?
  • Microsoft Visual C++ Redistributable Troubleshooting
  • Repair System Files in Windows

How to Analyze an App Manifest in Windows?

Let’s try to start the makeappx.exe application on a computer having no Windows SDK installed.

The Makeappx.exe allows to create UWP app packages in *.msix, *.appx, *.msixbundle, or *.appxbundle formats.

Obviously, the tool doesn’t start and returns an error:

Program 'makeappx.exe' failed to run: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed

The application has failed to start because its side-by-side configuration is incorrect - ResourceUnavailable

Note the ResourceUnavailable message, it directly points to the fact that the app is missing something to run.

The list of components and libraries an app needs to run is specified in the app manifest. The app manifest may be stored as a separate XML file or embedded directly into the application’s executable (.exe) file.

You can view the EXE file manifest using the free Manifest View or Resource Hacker tool.

We showed how to use Resource Hacker to view and edit an app manifest in the article How to suppress UAC elevation prompt?.

As you can see, the Dependency section in the app manifest contains a reference to the Microsoft.Windows.Build.Appx.AppxPackaging.dll. The application cannot work without this library file.

application manifest file - dependentAssembly

You can also trace application startup using the SxSTrace.exe.

Open a new command prompt and start data collection using the command :

sxstrace.exe Trace -logfile:c:\tmp\makeapp_sxtracesxs.etl

Tracing started. Trace will be saved to file c:\tmp\makeapp_sxtracesxs.etl.
Press Enter to stop tracing...

Then run the problem app. When the “The application has failed to start because its side-by-side configuration is incorrect” error appears, stop the tracing by pressing ENTER in the sxstrace window.

generate trace with sxstrace

Convert the ETL log file into a more convenient TXT format:

sxstrace.exe Parse -logfile:c:\tmp\makeapp_sxtracesxs.etl -outfile:c:\tmp\makeapp_sxtracesxs.txt

Open the resulting TXT file in the Notepad (or any other text editor) and find the lines with errors. You can also grep for errors in the text file with PowerShell:

Get-Content c:\tmp\makeapp_sxtracesxs.txt | Where-Object { $_.Contains("ERROR") }

As you can see, the error points to the same DLL file shown in the app manifest:

INFO: End assembly probing.
ERROR: Cannot resolve reference Microsoft.Windows.Build.Appx.AppxPackaging.dll,version="0.0.0.0".
ERROR: Activation Context generation failed.

ERROR: Cannot resolve reference

Additionally, you can analyze the SideBySide dependency errors with the event logs. If the error occurs, the following event is written to the Application log:

EventID: 33
Source: SideBySide

The error description mentions a library file or a component necessary to run an app.

Activation context generation failed for "C:\ps\test\makeappx.exe". Dependent Assembly Microsoft.Windows.Build.Appx.AppxPackaging.dll,version="0.0.0.0" could not be found. Please use sxstrace.exe for detailed diagnosis.

eventid 33 SideBySide - Activation context generation failed

Then open Google and search for information on this dll. In my example, the library file is a part of the MSIX Toolkit from Windows SDK (Redist.x86). Download and install the components you have found to let the app start correctly.

Microsoft Visual C++ Redistributable Troubleshooting

In most cases, the “incorrect side-by-side configuration” error is related to a missing or corrupted version of the Microsoft Visual C++ Redistributable library.

In this case, the following error will appear both in sxstrace log and in the app manifest:

Error: Cannot resolve reference ERROR: Cannot resolve reference Microsoft.VC90.MFC, processorArchitecture="amd64", publicKeyToken="1fc8b3b9a1e18e3b", type="win32",version="9.0.21022.8".

We get the following information from this message: the app needs an x64-bit Microsoft.VC90.MFC 9.0.21022. A quick search in Google shows that it is Microsoft Visual C++ 2008 Redistributable. Download and install this MVC version from the Microsoft website.

In the same way, you can get other Microsoft Visual C++ versions by their values in the Version field:

Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017, and 2019.14.0.x or newer
Microsoft Visual C++ 2013 Redistributable12.0.x
Microsoft Visual C++ 2012 Redistributable11.0.x
Microsoft Visual C++ 2010 Redistributable10.0.x
Microsoft Visual C++ 2008 Redistributable9.0.x

Repair System Files in Windows

If you understand that the app startup error is related to one of the Windows system files, check and repair Windows system image files and components using SFC and DISM:

sfc /scannow
DISM.exe /Online /Cleanup-image /Scanhealth
DISM.exe /Online /Cleanup-image /Restorehealth

0 comment
4
Facebook Twitter Google + Pinterest
Windows 10Windows Server 2019
previous post
Install and Manage Windows Updates with PowerShell (PSWindowsUpdate)
next post
How to Disable or Remove the Microsoft Wi-Fi Direct Virtual Adapter in Windows

Related Reading

How to Repair EFI/GPT Bootloader on Windows 10...

March 16, 2024

How to Restore Deleted EFI System Partition in...

March 11, 2024

Wi-Fi (Internet) Disconnects After Sleep or Hibernation on...

March 15, 2024

How to Repair Windows Boot Manager, BCD and...

March 11, 2024

PowerShell: Get Folder Size on Windows

April 2, 2024

Fix: The Computer Restarted Unexpectedly or Encountered an...

May 16, 2024

Network Computers are not Showing Up in Windows...

March 15, 2024

How to Download Offline Installer (APPX/MSIX) for Microsoft...

March 12, 2024

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Map a Network Drive over SSH (SSHFS) in Windows

    May 13, 2025
  • Configure NTP Time Source for Active Directory Domain

    May 6, 2025
  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • How to Allow Multiple RDP Sessions on Windows 10 and 11
  • How to Repair EFI/GPT Bootloader on Windows 10 or 11
  • How to Restore Deleted EFI System Partition in Windows
  • Network Computers are not Showing Up in Windows 10/11
  • How to Run Program without Admin Privileges and Bypass UAC Prompt
  • Fix: BSOD Error 0x0000007B (INACCESSABLE_BOOT_DEVICE) on Windows
  • Install and Manage Windows Updates with PowerShell (PSWindowsUpdate)
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top