ERROR OF SAVING SESSION XML FILE, when closing program
-
When I try to exit the program, I always get the message in the subject line, It doesn’t save session.xml and of course when I re-open NPP, it hasn’t saved and can’t find my previous session. It opens empty.
I have Remember current Session checked.
I have a laptop and a desktop and everything is fine in the laptop, win10Home. It used to work in the desktop, 10Pro, but stopped. I unstalled and reinstalled. In both cases it’s installed to C:\Programs, and C:\Programs\NotepadPP is a Read-Only directory in both cases.
But in the box that works, under Security/Permissions in the box that works, everything is allowed for authenticated users except full control and special permissions.
Under Permissions in the box that does not work, modify and write are not permitted, even for authenticated users. Is this the difference??. (The rest is the same.)
So I checked Modify and Write, in the Security tab of the Properties of the directory, but I still get the same message.The Backup path was set during installation to C:\Programs\NotepadPP\Backup, but that directory does not exist!!
This file does not exist in the problem computer:
C:\Programs\NotepadPP\session.xmlWhat should I do next. :-)
-
Are you using a “local configuration” (
c:\Programs\NotepadPP\doLocalConf.xml
exists), or does it use the standard%AppData%\Notepad++
for settings, or do you have a “cloud location” or-settingsDir
defined? (The easiest way to answer is to show us ?-menu’s Debug Info)Under Permissions in the box that does not work, modify and write are not permitted, even for authenticated users. Is this the difference?
If you are using a “local configuration” and you don’t have write permission in your application directory, then it cannot write the session file to the application directory, so obviously it’s going to have an error to save the session file.
-
@PeterJones Thak you for this useful information…
-
@ Thank.
-
I have similar problem & I solved it by making sure the Notepad++ always running as administrator.
-
@Deen said in ERROR OF SAVING SESSION XML FILE, when closing program:
I have similar problem & I solved it by making sure the Notepad++ always running as administrator.
That seems like you are running a portable version of Notepad++ in the
Program Files\Notepad++
folder. Click the?
at the right and end of Notepad++'s menu and select Debug Info. If you see both- Path:
C:\Program Files\Notepad++\Notepad++.exe
orC:\Program Files (x86)\Notepad++\Notepad++.exe
AND - Local Conf mode :
ON
then you are running a portable installation in the wrong place.
- Path:
-
@Deen said in ERROR OF SAVING SESSION XML FILE, when closing program:
I have similar problem & I solved it by making sure the Notepad++ always running as administrator.
Doing that is almost never the solution to a problem.
-
This post is deleted!