• Login
Community
  • Login

ERROR OF SAVING SESSION XML FILE, when closing program

Scheduled Pinned Locked Moved General Discussion
9 Posts 9 Posters 1.7k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    Gordon Gordonplex
    last edited by Feb 7, 2024, 4:32 AM

    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.xml

    What should I do next. :-)

    P 1 Reply Last reply Feb 7, 2024, 1:57 PM Reply Quote 0
    • P
      PeterJones @Gordon Gordonplex
      last edited by Feb 7, 2024, 1:57 PM

      @Gordon-Gordonplex ,

      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.

      D S 2 Replies Last reply Feb 8, 2024, 11:35 AM Reply Quote 1
      • D
        designer shount @PeterJones
        last edited by Feb 8, 2024, 11:35 AM

        @PeterJones Thak you for this useful information…

        1 Reply Last reply Reply Quote 0
        • W
          Willms Eva
          last edited by Apr 10, 2024, 4:00 AM

          @ Thank.

          1 Reply Last reply Reply Quote 0
          • D
            Deen
            last edited by Jun 4, 2024, 2:00 AM

            I have similar problem & I solved it by making sure the Notepad++ always running as administrator.

            M A 2 Replies Last reply Jun 4, 2024, 2:24 AM Reply Quote 0
            • M
              mkupper @Deen
              last edited by Jun 4, 2024, 2:24 AM

              @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 or C:\Program Files (x86)\Notepad++\Notepad++.exe AND
              • Local Conf mode : ON

              then you are running a portable installation in the wrong place.

              1 Reply Last reply Reply Quote 2
              • A
                Alan Kilborn @Deen
                last edited by Jun 4, 2024, 10:46 AM

                @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.

                1 Reply Last reply Reply Quote 1
                • S
                  Shadow Fight @PeterJones
                  last edited by Shadow Fight Jun 24, 2024, 7:49 PM Jun 24, 2024, 7:48 PM

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • A
                    Altair Manuel
                    last edited by Mar 26, 2025, 3:57 PM

                    i fixed it!!! I just made the notpad++ folder be able to be manipulated, and session.xml too!!! :D yay!

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    The Community of users of the Notepad++ text editor.
                    Powered by NodeBB | Contributors