Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix "This File Does Not Have an App Associated With It" Error

· 4 min read · Home Tech

In this article
  1. Why This Error Happens
  2. Quick Fix: Use "Open With"
  3. Reset Default Apps in Windows Settings
  4. Use Command Prompt to Repair Associations
  5. Check for Corrupted Registry Keys
  6. Create a New User Profile
  7. Common Scenarios and Specific Fixes
  8. Frequently Asked Questions

The "This file does not have an app associated with it for performing this action" error appears when Windows cannot find a default program to open a specific file type. The fix is usually straightforward: use the Open with option to choose an app, or reset the default app settings in Windows Settings.

Why This Error Happens

Windows relies on file associations—a registry-based mapping that tells the operating system which application should launch when you double-click a file. When you install a program, it registers itself for certain file extensions. If that registration is missing, corrupted, or overridden by a broken entry, Windows throws the "no app associated" error.

Common triggers include:

  • Uninstalling a program without removing its file associations properly.
  • Using a registry cleaner that deletes association keys.
  • Upgrading Windows or a major app update that resets associations.
  • Opening a file type that has no default app set (like some obscure extension).
  • Corrupted user profile or group policy restrictions.

Quick Fix: Use "Open With"

The fastest solution is to manually assign an app. Right-click the problematic file, select Open with, and choose a suitable program. If the app isn't listed, click Choose another app to browse for it. Check the box Always use this app to open .xyz files to make the choice permanent.

This works for most files, but if the error persists, the association may be deeply broken and require a system-level reset.

Reset Default Apps in Windows Settings

Windows 10 and 11 include a built-in reset for file associations. Go to Settings > Apps > Default apps. Scroll to the bottom and click Reset (Windows 11) or Reset to the Microsoft recommended defaults (Windows 10). This restores all built-in associations, but it will also remove any custom ones you've set—you'll need to re-assign your preferred apps afterward.

If you only want to fix one extension, search for that extension in the same Settings page, click it, and choose an app from the list.

Use Command Prompt to Repair Associations

For stubborn cases, the command-line tool assoc and ftype can help. Open Command Prompt as administrator and run:

assoc .ext=

Replace .ext with your file extension (e.g., .pdf). This clears the association. Then run:

assoc .ext=ProgramId

You need the correct Program ID, which you can find by running assoc alone to list all associations. For example, .txt=txtfile is the standard mapping for text files. This method requires some technical comfort and is best for advanced users.

Check for Corrupted Registry Keys

If the error affects many file types, the registry key HKEY_CLASSES_ROOT may be corrupted. Use the built-in System File Checker to repair system files:

  1. Open Command Prompt as administrator.
  2. Run sfc /scannow and wait for it to complete.
  3. Restart your computer.

If that doesn't help, run DISM /Online /Cleanup-Image /RestoreHealth to fix the Windows image. These tools can take several minutes but address underlying corruption.

Create a New User Profile

Sometimes the error is tied to a specific user account. Create a new local user account and see if the problem disappears. If it does, you can migrate your files to the new profile. This is a more drastic step, but it isolates profile corruption as the cause.

Common Scenarios and Specific Fixes

  • PDF files: Install a PDF reader like Adobe Acrobat Reader or use Microsoft Edge. Right-click the PDF, choose Open with, and select your preferred reader.
  • Image files (JPG, PNG): Use the built-in Photos app or any image viewer. If the error persists, reset the Photos app via Settings > Apps > Photos > Advanced options > Reset.
  • Shortcut (.lnk) files: This is trickier because shortcuts are system files. Try restarting Windows Explorer via Task Manager, or run the assoc .lnk=lnkfile command.
  • Unknown extensions: If you don't know what app should open the file, use a service like filext.com to identify it. Never download random apps from pop-up ads.

Frequently Asked Questions

Why does this error appear after a Windows update?

Windows updates can sometimes reset or alter file associations, especially if the update changes how certain apps are registered. Re-assign the default apps manually using the Settings method described above.

Can I fix this without admin rights?

Most fixes, including Open with and Settings changes, require standard user permissions. The command-line and System File Checker methods need administrator access. If you don't have admin rights, contact your IT department or system administrator.

Will resetting default apps delete my files?

No. Resetting default apps only changes which programs open which file types. Your files and their contents remain untouched. You may need to re-select your preferred apps for common file types like browsers and media players.

Is there a way to prevent this error in the future?

Be cautious when uninstalling software—some uninstallers offer to remove file associations. Also avoid registry cleaners that promise to "optimize" associations; they often break more than they fix. Regularly check your default apps in Settings to ensure nothing has changed unexpectedly.

What if the error says "app not found" instead of "no app associated"?

That usually means the associated app is missing or moved. Reinstall the application that should open the file, or use Open with to select a different program.