Cannot bind project in Visual Studio 2022

  • Operating system: Windows 11 Pro
  • Visual Studio version: 17.3.5
  • SonarQube for Visual Studio plugin version: 8.14.0.12562
  • Programming language you’re coding in: C#
  • Is connected mode used: Yes
    • SonarQube Cloud, SonarQube Server, or SonarQube Community Build? SonarQube Server Developer Edition v2025.1 (102418)

I am able to add the server connection and select the project to bind (the list of projects loads correctly).

But once I go ahead and click on “Bind” I get a “Binding could not be established” error message:

And this is the log output:

[DEBUG] [ThreadId 135] [SLCore] [sonarlint > SonarLint Server RPC request executor] GET 200 https://XXXXXXXX/api/system/status | response time=31ms

[DEBUG] [ThreadId 135] [SLCore] [sonarlint > SonarLint Server RPC request executor] Downloaded server infos in 31ms

[DEBUG] [ThreadId 21] [SLCore] [sonarlint > SonarLint Server RPC request executor] GET 200 https://XXXXXXXX/api/components/search.protobuf?qualifiers=TRK&ps=500&p=1 | response time=47ms

[DEBUG] [ThreadId 197] [SLCore] [sonarlint > SonarLint Server RPC request executor] Page downloaded in 49ms

[ThreadId 1] Connecting to ‘https://XXXXXXXX/’.

[DEBUG] [ThreadId 1] IsConnected is False.

[DEBUG] [ThreadId 1] Selected SonarQube request factory

[DEBUG] [ThreadId 1] Registered SonarQube.Client.Api.V2_10.GetVersionRequest for 2.1

[DEBUG] [ThreadId 1] Registered SonarQube.Client.Api.V2_60.GetPropertiesRequest for 2.6

[DEBUG] [ThreadId 1] Registered SonarQube.Client.Api.V3_30.ValidateCredentialsRequest for 3.3

[DEBUG] [ThreadId 1] Registered SonarQube.Client.Api.V5_10.GetIssuesRequest for 5.1

[DEBUG] [ThreadId 1] Registered SonarQube.Client.Api.V5_20.GetQualityProfilesRequest for 5.2

[DEBUG] [ThreadId 1] Registered SonarQube.Client.Api.V5_50.GetRulesRequest for 5.5

[DEBUG] [ThreadId 1] Registered SonarQube.Client.Api.V6_30.GetPropertiesRequest for 6.3

[DEBUG] [ThreadId 1] Registered SonarQube.Client.Api.V6_50.GetQualityProfilesRequest for 6.5

[DEBUG] [ThreadId 1] Registered SonarQube.Client.Api.V6_60.GetNotificationsRequest for 6.6

[DEBUG] [ThreadId 1] Registered SonarQube.Client.Api.V6_60.GetProjectBranchesRequest for 6.6

[DEBUG] [ThreadId 1] Registered SonarQube.Client.Api.V7_20.GetIssuesRequestWrapper`1[SonarQube.Client.Api.V7_20.GetIssuesWithComponentSonarQubeRequest] for 7.2

[DEBUG] [ThreadId 1] Registered SonarQube.Client.Api.V7_20.GetExclusionsRequest for 7.2

[DEBUG] [ThreadId 1] Registered SonarQube.Client.Api.V9_4.GetSonarLintEventStream for 9.4

[DEBUG] [ThreadId 1] Registered SonarQube.Client.Api.V9_7.SearchHotspotRequest for 9.7

[DEBUG] [ThreadId 1] Registered SonarQube.Client.Api.V10_2.SearchHotspotRequest for 10.2

[DEBUG] [ThreadId 1] Registered SonarQube.Client.Api.V10_2.GetRulesWithCCTRequest for 10.2

[DEBUG] [ThreadId 1] Registered SonarQube.Client.Api.V9_9.SearchFilesByNameRequest for 9.9

[DEBUG] [ThreadId 1] Getting the version of SonarQube…

[DEBUG] [ThreadId 1] No system proxy detected

[DEBUG] [ThreadId 15] Looking up implementation of ‘IGetVersionRequest’ for version ‘’ on thread ‘15’

[DEBUG] [ThreadId 15] Created request of type ‘SonarQube.Client.Api.V2_10.GetVersionRequest’.

[DEBUG] [ThreadId 15] Sending Http request:

[DEBUG] [ThreadId 15] Method: GET, RequestUri: ‘api/server/version’, Version: 1.1, Content: , Headers:

{

}

[ThreadId 1] [Connected Mode] Binding failed due to: An error occurred while sending the request.

Would appreciate any hints on how to solve this problem.

Regards, Luiz

Hello, @lborba!

First I would like to welcome you to our Community! :sonar:

I am sorry to hear that you have problems with binding your project. Unfortunately, from the logs you provided I can’t find any insight regarding what the problem might be.

Could you, please, make sure to provide us with the full verbose logs since the moment you open the solution until you click on the “Bind” button? If you don’t feel comfortable sharing the logs in this public thread, let me know and I can send you a private DM.

Greetings,

Those logs were already the verbose ones. :slight_smile:

Nevertheless, we were able to figure out what the problem was. It turns out we didn’t have the root certificate installed on our local machines, we had a sub one. Once we applied the root certificate the project binding worked as expected.

2 Likes