microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.48k stars 29.37k forks source link

Error During VS Code Upgrade: "Application 'Code.exe' (pid xxxx) cannot be restarted - Application SID does not match Conductor SID." #234044

Open aayushkamal opened 2 hours ago

aayushkamal commented 2 hours ago

I encountered an issue while upgrading Visual Studio Code. During the upgrade process, I ensured all running processes related to VS Code were closed. However, an error occurred, indicating that a new process was created during the installation, which caused the upgrade to fail. The error message observed in the Event Viewer is as follows:

Application 'C:\Program Files\Microsoft VS Code\Code.exe' (pid 15644) cannot be restarted - Application SID does not match Conductor SID. Image

This process is linked to this registry key Image

Steps to Reproduce:

Expected Behavior: The upgrade process should complete successfully without any errors after ensuring all instances of VS Code are closed.

Actual Behavior: The installation fails with the error message that a new process (Code.exe) was created during the installation, causing the upgrade to fail.

Could someone please help on it?

vs-code-engineering[bot] commented 2 hours ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.95.3. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

aayushkamal commented 2 hours ago

Nope! not working, same error I am getting.

Image

You can see in Task Manager that there are only 8 processes, but the process mentioned in the Event Viewer is not visible in Task Manager and only this process is stopping the application to upgrade. Image Image Image