Can't Bind or see any Projects on SonarQube Server

Please provide

  • Operating system: Windows Server 2019
  • Visual Studio version: Visual Studio 2022
  • SonarQube for Visual Studio plugin version: 10.4.0.16950
  • Programming language you’re coding in: .Net
  • Is connected mode used: SonarQube Server
    • SonarQube Cloud, SonarQube Server, or SonarQube Community Build? (if one of the latter two, which version?): Enterprise Edition v2025.1.1

And a thorough description of the problem / question: After installing the extension on Visual Studio 2022, I restart Visual Studio and open a .net solution, then created a Connection by going to Extensions/SonarQube/Connected Mode and was able to successfully create a connection to my SonarQube Server using a user token. I then pulled down and selected the new connection. This lit up the Select Project button. When I clicked on that, I got “Loading the project from the server failed”. I then tried to Manually enter a project key, but even though I copied the Project key directly from SonarQube, I got “Project was not found”. What could be the reason I can’t see the project? I also tried changing that Project from Private to Public, but that didn’t resolve the issue. I need to be able to bind to the project, so I need help. Thanks

Hi @james.m.oshea ,

A couple of the details you shared point to two distinct errors, “Loading the projects from the server failed” happens when the IDE tries to fetch the full project list, while “Project was not found” happens specifically when trying to bind by a manually-entered key. That distinction (and the fact you can’t see any projects) suggests this is likely a connection/permissions issue rather than something wrong with one specific project.

To help narrow this down:

  1. Check the detailed logs. The messages in the UI are generic, the real error (HTTP status code, etc.) will be in the extension’s logs. Go to Extensions > SonarQube > Options > General, set Logging level to Verbose, reproduce the failure, then check the Output window (see How to get the SonarQube for Visual Studio logs). Could you share what shows up there?
  2. Confirm the token type. Connected Mode requires a User token (generated at My Account > Security on the server), not a Project Analysis token or Global Analysis token, those won’t work for this flow. Can you confirm which type was generated?
  3. Sanity-check permissions outside the IDE. Using the same SonarQube Server account (not just the token), can you log into the server’s web UI in a browser and see the project(s) in the Projects list there? This tells us whether it’s a Browse-permission issue on the account or something specific to the IDE’s connection.
  4. Any proxy in the path? Since this is a Windows Server 2019 / enterprise environment, is there a corporate proxy between this machine and the SonarQube Server? We’ve seen “Loading the projects from the server failed” caused by proxy authentication (407) failures that don’t surface clearly in the UI.
  5. Double-check the Server URL entered in the connection matches exactly what you use in the browser (scheme, host, port, and any context path/trailing slash).

For reference: Connected mode setup walks through the expected flow end-to-end.

Cheers,

Stevan

  1. Here’s the log output (I modified the URL to meet security compliance)

    • [Connected Mode > Shared Binding] The shared binding configuration file was not found and will not be used. Probed path: not found
      [Analysis] Analysis edbce5c5-04d2-457b-a7d4-5e9e90beec01 found 0 issue(s) in DocTranslator.Tests.csproj [final: True]
      [ThreadId 1] [Connected Mode > Shared Binding] The shared binding configuration file was not found and will not be used. Probed path: not found
      [DEBUG] [ThreadId 1] [Credentials Loader] [AggregatingSolutionBindingCredentialsLoader > Default > Load] Executing Credential Operation
      [DEBUG] [ThreadId 28] [SLCore] [sonarlint > SonarLint Server RPC request executor] GET 200 https://sonarqube.domain/sonar/api/system/status | response time=34ms
      [DEBUG] [ThreadId 47] [SlCoreConnectionAdapter] Getting all projects failed: org.sonarsource.sonarlint.core.serverapi.exception.UnexpectedBodyException: Unexpected body received

  2. I can confirm I’m using a User token. When I created the connection to SonarQube Server and was prompted to generate token, my browser opened and automatically created the token. NOte We have a security banner that pops up that I need to acknowledge, We use smartcard authentication, so I need to select and confirm my certificate and PIN (this is the same as if I login through the browser directly), then click Allow connection. Go back to Visual Studio and the connection is listed. I confirm it’s creating a User token. However, if I try not generating from the extension, but instead manually create the user token on SonarQube, then paste it into the token field, I get “Unexpected body received”

  3. I’m testing with full admin permissions, so I have all access needed. End users will have more limited permissions, but that will be tested appropriately once we confirm functionality and before we begin to deploy.

  4. The server sits behind an F5 load balancer, but no proxy. That said TLS is terminating and forwarding to the backend server which also has the same certificate (SSL bridging). I don’t see any 407 errors.

  5. I’m using the same URL I use to browse to the application. no trailing /