Operating system: Windows 10 Enterprise for Virtual Desktops
Visual Studio version: 2019
SonarLint plugin version: 7.7.0
Programming language you’re coding in: C#
Is connected mode used:
Connected to SonarCloud or SonarQube (and which version):
And a thorough description of the problem / question:
I am trying to configure SonarLint in Connected mode. I’ve been able to connect to the SonarQube Server but when binding to a project, getting the below error. I am using Azure Virtual Desktop, accessing using Remote Desktop client. A previous post suggested that it might be because of Remote Desktop but that’ not true as some of my colleagues are able to bind the project successfully. On my machine, I can’t see anything in Credential Manager but my colleagues who were able to bind successfully, have a new record created under Windows Credentials → Generic Credentials with username SonarLint.VisualStudio.Integration:
I tried adding a credential record manually but still getting the same error in visual studio. Please advise as I’ve already wasted too much time investigating this.
Updating binding…
Binding solution to SonarQube project: Started
[ConnectedMode/QualityProfiles] Updating quality profiles…
[ConnectedMode/QualityProfiles] Number of out of date Quality Profiles: 8
Binding solution to SonarQube project: Downloading quality profile: C
Failed to write credentials, Win32ErrorCode: 1312. See Tutorial - Debug system error codes - Win32 apps | Microsoft Learn for more information.
Unexpected error during workflow execution: Failed to write credentials.
Welcome to the community. To make sure the you have the right permission could you please ensure that “Local Security Policy → Local Policies → Security Options → Network access: Do not allow storage of passwords and credentials for network authentication” is set to disabled
Hi Ugras, thanks for your reply. I just checked and the “Network access: Do not allow storage of passwords and credentials for network authentication” setting is set to disabled (screenshot below).