Github Issue: Microsoft Visual Studio we could not add the account error writing credentials into windowscredentialstore. Function: credwrite, Win32ErrorCode: 8.

Alfred Burns 1 Reputation point
2022-06-20T15:07:16.817+00:00

Whenever I try adding a Github account to make a Github repository, I get this error:

Microsoft Visual Studio we could not add the account error writing credentials into windowscredentialstore. Function: credwrite, Win32ErrorCode: 8.

213052-1739893e734efa8ee50194958877f4b2.png

I tried to delete C:\Users\USER\AppData\Local.IdentityService. But it doesn't seem the credentials are stored here as all my accounts remained after staring Visual Studio.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,220 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Carl Ardron 1 Reputation point
    2022-07-27T00:28:11.193+00:00

    Maybe this will be useful to someone (although an important detail is missing....): I had this same issue and for me (using W11) it was resolved by removing one of the 'Generic Credentials' under 'Windows Credentials' within the 'Credential Manager'. Which one... I'm afraid I didn't pay enough attention at the time because I was trying many things and the specific credential escapes me. But certainly one of the GitHub related ones.

    It may however be due to storage because the Error Code 8 appears to be referencing inadequate storage space.

    All the same; I found this very issue with Visual Studio Community not associating with my GitHub account and issuing the exact same error was directly solved by addressing the Windows Credential store (which on reflection isn't entirely surprising.)

    FWIW HTH YMMV

    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.