Microsoft Photos is the default photo viewer app for Windows 11. Usually it works fine, but sometimes you may see the ‘Class Unregistered’ error when viewing photos in the Photos app. Errors mainly appear due to misconfigured DLL files, corrupted system files or other system related problems.
Whatever the reason may be, fixing the Class notregistered error on Windows 11 is an easy one. Here are all the effective solutions that will help you get rid of the problem forever.
1. Restart Windows Explorer
Whenever you get an Unregistered Class error, the first thing you should do is to restart Windows Explorer. The error message may appear due to a temporary glitch in the system. And the best way to get rid of such problem is to restart Windows Explorer.
Here’s how to restart Windows Explorer on Windows 11:
Step 1: Press Windows key + X to open Power User Menu and select Task Manager from the list.
Step 2: Right-click on Windows Explorer and select Restart.
2. Choose Photos as Default Photo Viewer
An error message may appear if the Photos app is not set as the default photo viewer. To set the Photos app as the default app for viewing photos on your computer, follow the instructions below:
Step 1: Press the Windows + I key combination to open the Settings application.
Step 2: Select Applications from the left panel.
Step 3: Select Default Apps.
Step 4: Locate and select the Photos app.
Step 5: Click on all commonly used image extensions like JPG, JPEG, PNG, and GIF, select Photos from the menu, then click the Set Default button.
3. Reset Photos app
If configuring the Photos app as the default photo viewer doesn’t help, you can try resetting the app to its default settings. Doing this will help if the problem is caused by a corrupted Photos app.
Here are the steps to reset Photos app on Windows 11:
Step 1: Open Settings, select Apps from the left panel, then Installed Apps.
Step 2: Locate and click on the three dots next to Microsoft Photos and select Advanced options.
Step 3: Click the Reset button.
Step 4: Click Reset to confirm the crop appears.
After you reset the Photos app, restart your computer and check if the problem persists.
4. Re-register the Windows DLL file
DLLs (Dynamic Link Libraries) are files that contain code and data that other programs use to perform certain tasks. However, if an important DLL file is missing or damaged, the application will not work properly and even the simplest features will not work.
One of the ways to solve that is to re-register the DLLs. You can do that by following the steps below:
Step 1: Press the Windows key to open the Start Menu.
Step 2: Enter Command prompt in the Windows Search bar and select Run as administrator from the right pane.
Step 3: In an elevated Command Prompt window, type the following command and press Enter:
FOR /RC:\ %G IN (*.dll) DO “%systemroot%\system32\regsvr32.exe” /s “%G” regsvr32 ExplorerFrame.dll
5. Microsoft Visual C++ Program Repair
The Microsoft Visual C++ library is an important component of the Windows operating system. It ensures that all applications run normally on your computer.
When the package is damaged due to sudden system shutdown, virus attack or any other reason, you are prone to get errors like Unregistered Class. Fortunately, you can use the built-in repair option and get rid of the error. To do that, follow the instructions below:
Step 1: Open Start Menu, type Dashboard, and press Enter.
Step 2: Select Uninstall a program.
Step 3: Right-click on the latest Microsoft Visual C++ package installed on the device and select Change.
Step 4: Select Repair from the prompt that appears.
Once the repair is complete, you will have to restart your computer to apply the changes.
6. Reinstall Microsoft Store
Another major reason behind the error message could be a corrupted Microsoft Store. You can quickly remove the corruption by reinstalling the Microsoft Store. To do that, open Command Prompt as administrator, type the following commands and press Enter.
Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
7. Run SFC and DISM . Scan
Are you still getting the Class Unregistered error when using the Photos app? If yes, then you will have to perform an SFC scan. It’s a built-in utility that detects and removes corrupted files from your computer.
To perform an SFC scan, open an elevated Command Prompt window, type the following command, and press Enter:
sfc /scan now
After scanning, restart your device and check if the problem persists. If so, then you will have to run a DISM scan. The DISM scan repairs damaged and corrupted system images and files.
To run a DISM scan, execute the following commands one by one in an elevated Command Prompt window:
DISM /Online /Cleanup Image /DISM Health Check /Online /Cleanup Image /ScanHealth DISM /Online /Cleanup Image /Health Restore
View photos without interruption
The Unregistered Layer error can be very annoying, especially when you want to see your favorite photos on your computer. Fortunately, this is a common system problem and can be easily fixed. Just try the above solutions to fix the problem permanently.
Categories: How to
Source: thpttranhungdao.edu.vn/en/