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:
- 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?
- 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?
- 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.
- 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.
- 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