0x80070520 - ERROR_NO_SUCH_LOGON_SESSION
A specified logon session does not exist. It may already have been terminated.
Symptoms
- A specified logon session does not exist. It may already have been terminated.
- System error 1312 (ERROR_NO_SUCH_LOGON_SESSION)
Troubleshooting steps
- Note the exact error 1312 (ERROR_NO_SUCH_LOGON_SESSION) and which operation failed.
- Check the Windows Event Viewer and the relevant application/service logs for related entries.
- Apply the fix documented by Microsoft for error ERROR_NO_SUCH_LOGON_SESSION (see the reference URL).
- Retry the operation after applying the fix and confirm the error no longer appears.
Reference: learn.microsoft.com