Summary: Class not registered’ error is a Windows-specific problem, generally faced after an upgrade to Windows 10. You may not be able to view your photos due to this error on your Windows PC. However, this error can be fixed by some troubleshooting. Read on this post to know the most recommended ways to fix ‘Class not registered’ error when opening photos.
‘Since I downloaded Windows 10 on my laptop, I cannot open any of my photos. I get this message box: ‘Class not Registered.’ How should I fix this error and view my photos?’
Methods to Repair ‘Class not registered’ error
- Use Component Services
- Reset Windows 10 using PowerShell
- Run a System File Checker (SFC)
- Set a default program option for opening jpg files
- Reset default apps
- Disable iCloud
- Create a new Microsoft account
1. Use Component Services
To repair ‘Class not registered’ error while opening photos, run Component Services on your PC.
Steps to run Components Services:
- a. Press Win+ R and type dcomcnfg in the Run dialog box. Press Enter to open ComponentServices window
- b. Go to Component Services> Computer> My Computer. Double-click DCOM Config in the center pane
- c. DCOM Configuration Warning! message appears. Click Yes. Next, you may get another message for another component. Register or Record all these messages with Yes option
- d. Close the Component Services window
- e. Reboot your PC. The problem ‘Class not registered’ error should be resolved.
2. Reset Windows 10 using PowerShell
PowerShell in Windows is a task-based command line that helps to control and automate the administration of the Windows OS and its applications. You can use PowerShell to reset Windows 10 and repair the ‘Class not registered’ error.
Steps to fix the ‘Class not registered error’ with PowerShell:
- Hold the Windows and Press the X key. Choose Command Prompt (Administrator)
- In the command prompt window type, PowerShell and press Enter The prompt change to the PowerShell Prompt
- Type the following command:
Get-AppXPackage|Foreach{Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
- Press Enter
If you still run into an error, check the command line you typed and run it again.
3. Run a System File Checker (SFC)
System File Checker (SFC) scans for corrupt system files in the computer and repairs them. If the error ‘Class not registered’ on opening the photos is due to the corrupt system files, the SFC scan will fix it.
Steps to SFC scan:
- Press Windows key + X, click Command Prompt (Admin)
- In the Command Prompt, type the following command: sfc /scannow
- Press Enter
Use secure and fast Stellar Repair for Photo to fix the errors and corruptions in your pictures. It is an efficient tool to fix hundreds of photos from digicams, DSLRs, GoPro, drones, surveillance cameras, and mobiles. The software also repairs corrupt photos recovered from any damaged or corrupt storage media.
4. Set a default program option for opening JPG files
Set the default option for opening image files in Windows. Follow the below steps:
- Go to Windows Settings > Apps > Default Apps
- Click Choose default applications by file type link
5. Reset default apps
The ‘Class not registered’ error in Windows can also be fixed by resetting default apps. Follow the below steps:
- Open Settings > Apps > Default apps
- Scroll down to Reset to the Microsoft recommended defaults
- Click Reset
6. Disable iCloud
For some Windows users disabling iCloud in Task Manager in the computer fixed the ‘Class not registered’ error.
- Type Task Manager in the Windows search bar to open Task Manager
- Tap on the Startup pane
- Scroll to iCloud Services, right-click, and click Disable
7. Create a new Microsoft account
If none of the methods fixes the ‘Class not registered’ error occurring on opening photos or videos, create a new Microsoft account on your Windows.
First, sign in to your PC with a local account. Then follow the below steps to create a new Microsoft account:
- Go to Settings >Accounts
- Select Family & other people
- Click on Add someone else on this PC on right side menu
- Enter your Microsoft account email.Click Next
- Log out and log in through the new account
Wrapping Up
Any of the above method should resolve your problem of ‘Class not registered’ appearing on opening pictures. However, it is also advisable to check if the problem is not with your photos. To rule out the file corruption, try to open them in another computer or photo viewer. If you detect problem with photos, repair them using efficient and trustworthy Stellar Repair for Photo software.
Was this post helpful? Do share with us in the comment box below, which method worked in your case and fixed ‘Class not registered error’ when opening photo