Unable to view text file attachments in Outlook.

Something is wrong with my preview handlers in Outlook.

When I receive an email with the attachment .txt *, if I click on it, I will receive this message in the preview panel:

This file cannot be viewed due to an error with the following preview:

Windows TXT Preview

* This problem applies not only to .txt files, but also to any types of files that are associated with the prevhost.exe preview handler (for example, .rtf, .. qql, .reg, .bat, etc.). Sub>

Following the suggestion of this post , I deleted Windows TXT Previewer from the following registry folder (after restoring it, of course):

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PreviewHandlers]

This fixed the issue with Outlook (instantly), but interrupted the preview handler in Windows Explorer. (The preview area now displays "No Preview" in Explorer). Conversely, when I restored the registry key, it fixed the Windows Explorer preview, but it again turned off the Outlook preview.

Other things I tried without success:

  • attaching prevhost.exeto the debugger in Visual Studio, but I do not have the source code and it is not possible to read the assembly.
  • running sfc /scannow
  • Windows TXT Outlook->Options->Trust Center->Settings->Attachment Handling->Previewers ( : " " , .

+3

All Articles