I can’t launch Visual Studio after it was installed as it gives me the error: Visual Studio failed to start due to an error. StreamJsonRpc.RemotelnvocationException:

Иван русанов 0 Reputation points
2024-01-31T17:41:51.06+00:00

I can’t launch Visual Studio after it was installed as it gives me the error: Visual Studio failed to start due to an error. StreamJsonRpc.RemotelnvocationException: Access denied along the way “C:\Users\hfx16\AppData\Local.IdentityService\VBAccountStore.lock.” InnerException - System. UnauthorizedAccessException: Access denied along the way “C.\Users\hfx16\AppData\Local.IdentityService\V3AccountStore.lock.” I talked to an agent, and we tried to launch VS form the Developer Command Prompt and running devenv /ResetSettings but as that did not work, we ran the following command on CMD: sfc/scannow and DISM.exe /Online /Cleanup-image /Restorehealth.

Developer technologies | Visual Studio | Setup
Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2024-02-01T02:53:04.1233333+00:00

    Hi @Иван русанов, 

    Welcome to Microsoft Q&A!

    Please navigate to the path: C:\Users\<Username>\AppData\Local\.IdentityService. And check if the VBAccountStore.lock and V3AccountStore.lock files exist and ensure that you have full control to the location. 

    If it exists, please backup and delete the VBAccountStore.lock and V3AccountStore.lock files. Then, go to Visual Studio Installer > More > Repair the Visual Studio > re-launch the Visual Studio. 

    If it doesn’t work, you can manually delete the %localappdata%\.Identityservice folder (C:\Users\<Username>\AppData\Local\.IdentityService) and try again. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.