title: Can't preview text file attachments in Outlook
body: <p>Something is wrong with my preview handlers in Outlook.</p>
  <p>When I receive an email with a .txt attachment*, if I click on it, I get this message in the preview pane:</p>
  <blockquote>
  <p>This file cannot be previewed because of an error with the following previewer:</p>
  <p><strong>Windows TXT previewer</strong></p>
  </blockquote>
  <p>*<sub>This problem applies not only to .txt files, but to any file types that are associated with the prevhost.exe preview handler (e.g., .rtf,. .sql, .reg, .bat, etc)</sub></p>
  <p>Following a suggestion from <a href="https://superuser.com/questions/762773/this-file-cant-be-previewed-because-of-an-error-in-the-microsoft-word-previewe">this post</a>, I deleted the Windows TXT Previewer from the following registry folder (after backing it up, of course):</p>
  <p><code>[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PreviewHandlers]</code></p>
  <p>This fixed the problem with Outlook (instantly), but broke the Preview Handler in Windows Explorer. (The Preview Pane in Explorer now displays &quot;No preview available&quot;). Conversely, when I restored the registry key, it fixed the Windows Explorer previewer, but it broke the Outlook previewer again.</p>
  <p>Other things I've tried without success:</p>
  <ul>
  <li>attaching <code>prevhost.exe</code> to the debugger in Visual Studio, but I don't have the source code and can't read assembly.</li>
  <li>running <code>sfc /scannow</code></li>
  <li>Disabling the Windows TXT previewer in <code>Outlook-&gt;Options-&gt;Trust Center-&gt;Settings-&gt;Attachment Handling-&gt;Previewers</code> (this just displayed a new message in the preview pane: &quot;previewer has been disabled&quot; with a button to re-enable it, which simply restored the original error message.</li>
  </ul>
  <p>Other suggestions??</p>