When running VS as Elevated sonarQube can't connect

Please provide

  • Operating system: Windows 11
  • Visual Studio version: 17.14.5
  • SonarQube for Visual Studio plugin version: 8.20.0.13314
  • Programming language you’re coding in: C# / Typescript
  • Is connected mode used:
    • SonarQube Server: Data Center Edition v2025.1 (102418)

And a thorough description of the problem / question:

At my work place we can no longer open VisualStudio as admin and now have to use the elevated access:
image

But now sonarqube wont connect up meaning connected mode no longer works.
Steps:

  • Create a new connection
  • Select SonarQube server and add the URL
  • Click generate token
  • Opens in browser fine
  • Click the authorise button,
  • Connection Failed error

Also tried steps above but creating the token myself and copy and pasting it in but same issue.

Let me know if there is anything i can get to help as shame to lose this because the login flow does not work. VS recently did updates to their login flow to support elevated access as its becoming more common.

Do you get similar logs to this?IllegalStateException: Visual Studio - When Binding Connection/Project

1 Like

No these are the logs:

`[DEBUG] [ThreadId 36] [SLCore] [org.sonar.plugins.javascript.bridge.BridgeServerImpl > pool-3-thread-1] Pinging the bridge server

[ThreadId 1] Bringing IDE to front…

[DEBUG] [ThreadId 1] SetForegroundWindow call failed. Last error code: 0

[ThreadId 1] Failed to write credentials, Win32ErrorCode: 1312. See Tutorial - Debug system error codes - Win32 apps | Microsoft Learn for more information.

[ThreadId 1] Failed adding server connection: Failed to write credentials

[DEBUG] [ThreadId 151] [SLCore] [org.sonar.plugins.javascript.bridge.BridgeServerImpl > pool-3-thread-1] Pinging the bridge server`

Hi @rybowdenAccess

Can you check if you have this option enabled?

If not, then is your windows account using cloud-based identity provider (AzureAD/EntraID)? We’ve seen reports of users not being able to access the local Credentials Store when running SQVS with elevated/admin privileges. (cc @Farah ) We plan to address this issue in the future

1 Like

Correct it is set to disabled:

Correct as well, user account is AzureAD/EntraID from central and we lost admin rights so now having to use elevated permissions for VS now.

Unfortunately we were not able to find a quick fix to our integration with Credential Store/Manager and we need to explore other options, so I can’t promise a concrete timeline yet.

For now, the only workaround is to run VS with normal privileges, but I understand that this might not be possible for you. Since we started to receive more reports for this problem, it will probably be bumped in the priority.

3 Likes

Hi @rybowdenAccess

We’re trying to investigate this issue and have set up an EntraID environment where we ran VS as admin, however we couldn’t reproduce the same problem as you faced. However, I noticed that you run it ‘with elevated access’ - can you confirm that this is what’s used to configure those elevated privileges?


Yes i believe the thing you posted EPM is what we have because once we click that we they get this popup which is to say why we are doing that and that has EPM in the top bar: