5 Ways to Fix TWINUI Error on Windows 10/11

PC Repair Windows
Quick Fix

Download and try Outbyte PC Repair right now to see what it can do for your Windows.

Developed for Windows 10/11 (8, 7, Vista, XP)

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy Policy.

Reading time: 4 Minutes

While smartphones and gadgets continue to improve in terms of photo-taking capabilities and PDF viewing, there are still instances when a Windows 10/11 PC is essential for accomplishing more demanding tasks.

Unfortunately, as with other devices, there are times when you encounter errors when opening PDFs, photos, links, and apps on your PC. One of these notorious errors is the TWINUI error.

In this post, we will explain why it happens and give suggestions to fix it.

What Is TWINUI Error on Windows 10/11?

The TWINUI error occurs in Windows 10/11 PCs, preventing users to change their default programs and applications. This means that when this error is present, a user cannot set default programs.

Pro Tip: Run a dedicated PC optimization tool to get rid of incorrect settings, junk files, harmful apps, and security threats that can cause system issues or slow performance.

Free Scan for PC Issues
Compatible with: Windows 10/11, Windows 7, Windows 8

Special offer. About Outbyte, uninstall instructions, EULA, Privacy Policy.

Although there are many causes of TWINUI error on Windows 10/11, computer experts are pointing to reasons like system registry corruption and malware entity invasion.

How to Fix TWINUI Error on Windows 10/11

Are you having a hard time dealing with the TWINUI error? Fret not. You have come to the right place.

Below, we have presented ways on how to fix Windows 10/11 TWINUI error. The solutions are listed in no particular order, so feel free to try one, which you think suits your situation best.

But before you proceed, we suggest you try these initial workarounds first:

  • Reboot your PC. After the reboot process, try to open the file where you encountered the error.
  • Check if there are any pending Windows Updates. If an update is pending, install it right away.
  • Make sure all applications you’ve downloaded from the Windows Store are updated.

Now, if the problem persists, go on with these fixes:

Fix #1: Remove the TWINUI error via Windows PowerShell

You may try to remove the TWINUI error via Windows PowerShell. In this fix, you need to enter a set of commands to set programs to their default values.

For a more detailed guide on what to do, follow these steps:

  1. Press the Windows + S keys.
  2. Into the search field, input windows power shell and hit Enter. Right-click on the most relevant search result.
  3. Select Run as Administrator.
  4. Once the Windows PowerShell opens, copy paste the following command and hit Enter: Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode – Register “$($_.InstallLocation)\AppXManifest.xml”}
  5. The process may take a while to complete, so you might have to wait. Make sure you don’t interrupt it as all your files are being scanned and their settings are being changed.
  6. Once completed, exit the window.
  7. Restart your PC to ensure all the applied changes take effect.

Fix #2: Reset the Photos app configuration file

If the error code surfaced while opening the Photos application, you may try deleting the contents of its configuration file to reset it. Take note that you don’t have to delete the entire folder. You only need to delete the contents and restart your PC.

Here’s how:

  1. Press the Windows + R keys to launch the Run utility.
  2. Into the text field, input this command: %appdata%\..\Local\Packages\Microsoft.Windows.Photos_8wekyb3d8bbwe\LocalState
  3. Hit Enter.
  4. Copy the contents of this folder elsewhere so you can quickly pull them up in the event something goes wrong. After copying these files, empty the folder.
  5. Restart your PC and see if the error persists.

Fix #3: Run the System File Checker

If you suspect that your system configuration files are corrupt, then you may run the System File Checker utility. The SFC is designed by Microsoft to fix missing or corrupt files.

Here’s how to use it:

  1. Press the Windows + R keys to launch the Run utility.
  2. Into the text field, input cmd and hit Enter. This will open the Command Prompt.
  3. Into the command line, input sfc /scannow and hit Enter. Wait as Windows starts to check your system files and look for any problems. Take note that the process may take a while to complete, so be patient.
  4. If errors are found, the SFC utility will fix them for you.
  5. Reboot your PC so the changes can take effect.

Fix #4: Install any pending Windows Updates

Every now and then, Windows releases important updates to fix bugs and errors in the operating system. So, if you are thinking twice about installing an update, we highly recommend that you do.

To install a Windows Update, follow these steps:

  1. Press the Windows + S keys to launch the search bar.
  2. Into the text field, input Windows Update and hit Enter. Click on the most relevant search result.
  3. Now, click the button that says Check for Updates.
  4. Windows should begin checking for any available updates and install them for you.
  5. Once the installation process is done, you will be prompted to restart.
  6. After updating, check if the issue is fixed.

Fix #5: Restore your system

If none of the four fixes worked, try to restore your system to the last working restore point. However, take note that you can only do this if you have a restore point created before the error occurred.

To restore your system, do the following:

  1. Launch the search bar by pressing the Windows + S keys.
  2. Into the text field, input restore and hit Enter. Click on the most relevant search result.
  3. Navigate to the System Protection section and select System Restore.
  4. At this point, a wizard will guide you through all the steps needed to restore your system.
  5. Hit Next and proceed with all the instructions.
  6. Choose a restore point from the list of options available. If you have created more than one restore point, they will be shown here.
  7. Windows will ask you to confirm your actions for the last time. Make sure you save your work and you have backed up all your files just in case something comes up.


Although the TWINUI error is not considered fatal, it can be irritating to deal with, especially if you are working on something very important. Luckily, you have these five fixes available.

After finding a fix that works, make sure to protect your PC from malware entities. Also, make it a habit to regularly clean your PC of junk and unnecessary files. This way, you can prevent errors that may arise in the future.

Give us some love and rate our post!
[Total: 0 Average: 0]
Author Profile
Vicrey Macapagal
Vicrey Makapagal

Vic is a tech enthusiast who loves to be up-to-date with the latest and greatest technology in the world. He creates content that educates and helps users with their tech-related questions. Vic manages our website to ensure that our readers have a seamless experience while browsing. He excels in troubleshooting errors and resolving Windows issues for gaming and work purposes.

Spread the love
Notify of
Inline Feedbacks
View all comments