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.
    • Gordon GordonplexG
      Gordon Gordonplex
      last edited by

      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. :-)

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Gordon Gordonplex
        last edited by

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

        designer shountD Shadow FightS 2 Replies Last reply Reply Quote 1
        • designer shountD
          designer shount @PeterJones
          last edited by

          @PeterJones Thak you for this useful information…

          1 Reply Last reply Reply Quote 0
          • Willms EvaW
            Willms Eva
            last edited by

            @ Thank.

            1 Reply Last reply Reply Quote 0
            • DeenD
              Deen
              last edited by

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

              mkupperM Alan KilbornA 2 Replies Last reply Reply Quote 0
              • mkupperM
                mkupper @Deen
                last edited by

                @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
                • Alan KilbornA
                  Alan Kilborn @Deen
                  last edited by

                  @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
                  • Shadow FightS
                    Shadow Fight @PeterJones
                    last edited by Shadow Fight

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • Altair ManuelA
                      Altair Manuel
                      last edited by

                      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