Pycharm2018 can't connect to TFS online( visualstudio.com)

Answered

We are switching from our local TFS server to one located on https://X.visualstudio.com. I can connect to our old server fine, however, when I redirect to TFS online, I always get:

  Transport Error: 401 Error: Unauthorized

I am using the Alternate authentication. Even tried running Pycharm as admin.

Everything works fine when I connect thru a browser (Visual Studio 2017 as well), Its only thru Pycharm that I have any issue.

 

 

0
2 comments

Check if overriding NTLM flags helps. Please add the following lines to Help - Edit Custom VM Options and restart IDE:

-Dorg.jetbrains.tfsIntegration.webservice.auth.ntlm.message1flags=0x00088207
-Dorg.jetbrains.tfsIntegration.webservice.auth.ntlm.message3flags=0x00088205

However, JetBrains plugin supports TFS up to 2015, so it might not work correctly with visualstudio.com Use Microsoft Visual Studio Team Services plugin instead https://plugins.jetbrains.com/plugin/7981-visual-studio-team-services

1
Avatar
Permanently deleted user

Had similar issue. My problem was I could connect to TFS using NTLM(system credentials) but could not connect to the TFS server with just NTLM and passing the credentials. Once I applied the above VM options and restarted the server it connected the same. Thanks for the solution.

0

Please sign in to leave a comment.