<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Cannot Open TXT Files - &quot;Session file is either corrupted or not valid&quot;]]></title><description><![CDATA[<p dir="auto"><strong>Sudden NPP Behavior Change - Cannot Open TXT Files</strong></p>
<p dir="auto">I was working with a new program that allows configuration of the right-click menu in Windows, and suddenly NPP stopped being able to edit a TXT file</p>
<p dir="auto">This behavior is not only from a Windows folder, where you can either right-click or double-click to open a TXT file, but NPP will not open or edit files in the Light Explorer window or via Recent Files</p>
<p dir="auto">Furthermore, if I eliminate the TXT file extension, NPP will open the file. However, if the extension of TXT is on the file, I get the “Session file is either corrupted or not valid” message</p>
<p dir="auto">I rely on NPP for all my TXT file editing, so this is a huge problem. Any assistance will be greatly appreciated</p>
<p dir="auto">Michael</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/17562/cannot-open-txt-files-session-file-is-either-corrupted-or-not-valid</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 07:56:51 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17562.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 02 May 2019 15:39:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cannot Open TXT Files - &quot;Session file is either corrupted or not valid&quot; on Thu, 02 May 2019 23:00:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/meta-chuh" aria-label="Profile: Meta-Chuh">@<bdi>Meta-Chuh</bdi></a></p>
<p dir="auto">Well, I have tried all the steps outlined, and have rebooted the laptop three times.  I still cannot get NPP to open a TXT file</p>
<p dir="auto">It is still behaving as before, where if the file has no extension, it will open that file.  A file with a TXT extension will not open if it is double-clicked, not open if the file is selected from the Light Explorer menu, and will not open if you use the File/Open method</p>
<p dir="auto">I did a different type of test and renamed a TXT file as an INI file.  NPP opened that file without an error</p>
<p dir="auto">I also was able to open an INI file that was generated by another program, and I was able to open a Python file (PY)</p>
<p dir="auto">I am thinking it has to do with the Windows context editor I was trying to use.  Just not sure how to enable the TXT files again.  I am thinking it is a REGISTRY issue</p>
<p dir="auto">Michael</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42863</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42863</guid><dc:creator><![CDATA[MickardEMT]]></dc:creator><pubDate>Thu, 02 May 2019 23:00:21 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot Open TXT Files - &quot;Session file is either corrupted or not valid&quot; on Thu, 02 May 2019 17:04:51 GMT]]></title><description><![CDATA[<p dir="auto">Meta Chuh</p>
<p dir="auto">As always, your support and replies <strong>ROCK</strong>!!!</p>
<p dir="auto">I will try this shortly and let you know what happens</p>
<p dir="auto">Thank you.  I will go thru these fixes shortly and report back</p>
<p dir="auto">Michael</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42839</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42839</guid><dc:creator><![CDATA[MickardEMT]]></dc:creator><pubDate>Thu, 02 May 2019 17:04:51 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot Open TXT Files - &quot;Session file is either corrupted or not valid&quot; on Thu, 02 May 2019 16:41:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mickardemt" aria-label="Profile: MickardEMT">@<bdi>MickardEMT</bdi></a></p>
<p dir="auto">first thing i would try, is to remove the right click menu tool if possible.</p>
<p dir="auto">then try a repair install, using the same npp.7.6.6.installer.exe you used the last time. (i suppose you stayed at 32 bit because of textfx, but i’m not sure)</p>
<p dir="auto">if this does not solve the open with or double click on a file for notepad++ yet:</p>
<ul>
<li>
<p dir="auto">close notepad++ if it is open</p>
</li>
<li>
<p dir="auto">right click on any .txt file and choose <code>open with &gt; choose other app</code> and select notepad++ from this list. (if not available, see farther below)</p>
</li>
<li>
<p dir="auto">select <code>always use this app to open .txt files</code>and hit ok.</p>
</li>
<li>
<p dir="auto">close notepad++ again and retry opening your .txt file by double clicking on it.</p>
</li>
</ul>
<p dir="auto"><strong>if you are not able to select notepad++.exe form the choose other app list above:</strong></p>
<ul>
<li>
<p dir="auto">close notepad++ if it is open</p>
</li>
<li>
<p dir="auto">right click on your notepad++ icon and choose “run as administrator”<br />
(make sure you see <code>[Administrator]</code> at the top bar of your notepad++ window (see screenshot)</p>
</li>
<li>
<p dir="auto">go to <code>settings &gt; preferences &gt; file association</code> and make sure your needed extensions, like .txt are visible at the registered extensions panel (last panel on the right) as seen on this screenshot:</p>
</li>
</ul>
<p dir="auto"><img src="https://i.imgur.com/m0St1R0.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
<ul>
<li>
<p dir="auto">hit close and exit notepad++</p>
</li>
<li>
<p dir="auto">now reopen notepad++ normally, and go to <code>settings &gt; preferences &gt; file association</code> again, and make sure your needed extensions are also visible for the standard user account.</p>
</li>
<li>
<p dir="auto">then exit notepad++ again</p>
</li>
<li>
<p dir="auto">right click on any .txt file and choose <code>open with &gt; choose other app</code> and select notepad++ from this list.</p>
</li>
<li>
<p dir="auto">select <code>always use this app to open .txt files</code>and hit ok.</p>
</li>
<li>
<p dir="auto">close notepad++ again and retry opening your .txt file by e.g. double clicking on it.</p>
</li>
</ul>
<p dir="auto">best regards and good luck.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42836</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42836</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Thu, 02 May 2019 16:41:50 GMT</pubDate></item></channel></rss>