question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connecting Rider to TFVC on TFS, via direct access

See original GitHub issue

Hi! Currently I am working from home and I am trying to use Rider to connect to TFS. While I was in the office everything works fine, but know, because I use Direct access to connect to TFS I cannot use Rider anymore, because the extension doesn’t work.

I took a look in the logs and I see this exception:

java.lang.RuntimeException: An error occurred: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.microsoft.alm.plugin.external.commands.Command.throwIfError(Command.java:423) at com.microsoft.alm.plugin.external.commands.FindWorkspaceCommand.throwIfError(FindWorkspaceCommand.java:132) at com.microsoft.alm.plugin.external.commands.FindWorkspaceCommand.parseOutput(FindWorkspaceCommand.java:88) at com.microsoft.alm.plugin.external.commands.FindWorkspaceCommand.parseOutput(FindWorkspaceCommand.java:24) at com.microsoft.alm.plugin.external.commands.Command$1.completed(Command.java:178) at com.microsoft.alm.plugin.external.ToolRunner$ListenerProxy.completed(ToolRunner.java:295) at com.microsoft.alm.plugin.external.ToolRunner$ProcessWaiter.run(ToolRunner.java:333)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
eldamircommented, Oct 24, 2022

I follow all the tips in #50 to no avail… Particularly here:

You can find it in the IntelliJ IDEA install folder, which in my case is C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.3.1\jre\jre\bin.

Once there you will then execute the following command

keytool -keystore “C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.3.1\jre\jre\lib\security\cacerts” -importcert -alias TFS -file “C:\temp\tfs.cer”

I’ve installed through Jetbrains Toolbox, and so that path doesn’t exist… I found my cacerts here:

  • C:\Users\XX\AppData\Local\JetBrains\Toolbox\bin\jre\lib\security

And then I’m assuming that the correct JRE is here, but I may be wrong:

  • C:\Users\XX\AppData\Local\JetBrains\jdk8\jre\bin

Actually, hang on, There is also a Rider-specific set here:

  • C:\Users\XX\AppData\Local\JetBrains\Toolbox\apps\Rider\ch-0\223.6646.116\jbr\bin
  • C:\Users\XX\AppData\Local\JetBrains\Toolbox\apps\Rider\ch-0\223.6646.116\jbr\lib\security\cacerts

Running the -importcert with these made the difference… Now it works…!

Thanks for being my Rubber Duck, @ForNeVeR

0reactions
ForNeVeRcommented, Oct 24, 2022

In that case, it’s clear you need to do something about the certificates the TFS client is using. Take a look at #50.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use Visual Studio's TFVС local workspace in Rider
Open a solution that is under Visual Studio version control. Select a main menu item VCS | Enable Version Control Integration… and select...
Read more >
Develop and share code in TFVC with Visual Studio
See how to share code in Team Foundation Version Control (TFVC) centralized version control by using Visual Studio.
Read more >
Working with TFS in IntelliJ IDEA via VSTS Plugin
In case you are not accessing TFS through SSL connection you can skip ... directly from IDEA and start working with your TFVC...
Read more >
TFS Version Control Is Dead - Medium
It is about moving from TFVC on TFS to Git on TFS. ... have trouble by segregating access to the code by creating...
Read more >
My JetBrains Rider Plugins—June 2022 Edition
I started using JetBrains Rider because I used both a Windows PC and a ... and TFVC repositories on Azure DevOps Services or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found