Fix 'File Does Not Have an App Associated' Error
In this article
If you see the error "This file does not have an app associated with it for performing this action" when trying to open a file in Windows, it usually means Windows has lost the file type association or the default app is missing. The fix is to reassign the correct app or repair the file association. Below are step-by-step methods to resolve it, starting with the simplest.
What You'll Need
- Administrator access to your Windows PC (to change system settings).
- The file you're trying to open (or a similar file of the same type).
- Knowledge of which app should open the file (e.g., Notepad for .txt, Microsoft Word for .docx, or a media player for .mp4).
Step-by-Step
- Right-click the file and select Open with from the context menu. If you see a list of apps, choose the correct one and check the box "Always use this app to open .[extension] files" before clicking OK. This fixes the association for that file type.
- If "Open with" shows no apps or the app you need isn't listed, click Choose another app and then More apps to see all installed programs. Select the right one and check the "Always" box.
- If the file type is common (like .jpg, .pdf, .mp3), use Windows Settings: Go to Settings > Apps > Default apps. Scroll down and click Choose defaults by file type. Find the file extension (e.g., .pdf) in the list, click the current default (or the blank icon), and pick the correct app.
- For file types not listed in Settings, you can manually change the association via the registry. Press Windows + R, type
regedit, and press Enter. Navigate toHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts. Find the folder for your file extension (e.g., ".xyz"). If it exists, delete the UserChoice subfolder (right-click it and select Delete). Then close Registry Editor and restart your PC. Windows will then use the default association. - If the file type is unknown or you don't have an appropriate app, install the correct program. For example, if you're trying to open a .docx file, install Microsoft Word or a free alternative like LibreOffice. After installation, repeat step 1 or 2.
- If the error persists for a specific file, it might be corrupted or have a misleading extension. Try renaming the file to a known extension (e.g., change .data to .txt) and open it with Notepad. If that works, the file is actually a text file.
Common Mistakes
- Choosing the wrong app. For example, opening a PDF in Notepad will show garbled text. Make sure you select an app that supports the file type.
- Deleting the entire FileExts registry key instead of just the UserChoice subfolder. This can cause other issues. Only delete the UserChoice subfolder.
- Forgetting to restart after registry changes. Some changes only take effect after a reboot.
- Assuming the file extension is correct. Sometimes files are renamed incorrectly (e.g., a .jpg file renamed to .png). This can cause the error.
Tips
- Always use the "Open with" method first—it's the safest and easiest.
- If you're unsure which app to use, search online for the file extension (e.g., "what opens .xyz files").
- Keep your apps updated. Outdated apps may not register correctly with Windows.
- For system files (like .dll or .exe), do not change associations unless you are absolutely certain. Incorrect changes can break programs.
- Create a system restore point before editing the registry, so you can revert if something goes wrong.
Troubleshooting
If the steps above don't work, try these in order:
- Restart your PC—sometimes the file association cache gets stuck.
- Run the Windows Store Apps Troubleshooter: Go to Settings > System > Troubleshoot > Other troubleshooters (or Update & Security > Troubleshoot on older versions). Run the "Windows Store Apps" troubleshooter, as it can fix app registration issues.
- Check for Windows updates: Go to Settings > Windows Update and install any pending updates. A bug in Windows can cause this error.
- Reset the app: If the app you want to use is a Microsoft Store app, go to Settings > Apps > Installed apps, find the app, click the three dots, and select Advanced options. Then click Reset. This will re-register the app without deleting your data.
- Use a system file checker: Open Command Prompt as administrator (right-click Start > Windows Terminal (Admin) or Command Prompt (Admin)). Type
sfc /scannowand press Enter. This scans and repairs system files that might be causing the issue. - Reinstall the app: If the app is not from the Store, uninstall it and reinstall from the official website. This will re-register its file associations.
Frequently Asked Questions
Why does this error happen?
The error occurs when Windows doesn't have a default app registered for that file extension. This can happen after uninstalling an app, a system update, or if the file extension is rare.
Can I fix this without admin rights?
Most methods require admin rights to change system settings. If you're on a work or school computer, contact your IT administrator.
Will changing the registry break my PC?
If you only delete the UserChoice subfolder for the specific extension, it's safe. However, editing the registry incorrectly can cause problems. Always back up the registry or create a restore point first.
What if the file type is a .exe or .dll?
Do not change associations for executable or system files. If you're getting this error for an .exe, it might be a sign of malware or a corrupted system. Run a virus scan and use the SFC tool.
Why does the file open in the wrong app even after I set the right one?
Sometimes the app you chose doesn't support the file type, so Windows reverts. Make sure the app can actually open that file. Also, if the file extension is misleading, the app may fail.
Is there a way to open a file without knowing its type?
Yes, you can use a text editor like Notepad to view the file's header. If you see readable text, it's likely a text file. If you see binary data, use a hex editor or try a universal viewer like VLC for media files.