Skip to content

Alternative credentials not working, cries about not finding Newtonsoft.Json #1122

@hartmark

Description

@hartmark

I have project hosted at harre.visualstudio.com and when trying to clone it I get this error:

C:\work>git tfs clone https://harre.visualstudio.com $/TfsGitDemo
Initialized empty Git repository in C:/work/TfsGitDemo/.git/

TF30063: You are not authorized to access https://harre.visualstudio.com/TfsGitD
emo.
Ett eller flera fel har uppstått.
Det går inte att läsa in filen eller sammansättningen Newtonsoft.Json, Version=6
.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed eller ett av dess beroe
nden. Ogiltig pekare. (Undantag från HRESULT: 0x80004003 (E_POINTER))
Värde får inte vara null.
Parameternamn: path1
All the logs could be found in the log file: C:\Users\KMHA11\AppData\Local\git-t
fs\git-tfs_log.txt

I took Newtonsoft.Json.* from a nuget-installation version 10.0.3 and copied to this folder "git-tfs\GitTfs.Vs2015"

And now all is working well. Looking at the project it seems that the GitTfs.Vs2015 project properly adds Newtonsoft.Json.* to the out-folder so I guess it needs to be added to the thing that does the packaging.

C:\work>git tfs version
git-tfs version 0.27.0.0 (TFS client library 14.0.0.0 (MS)) (32-bit)
C:\PortableApps\git-tfs\git-tfs.exe

Note: If you want to force git-tfs to use another version of the tfs client libr
ary,
set the environment variable `GIT_TFS_CLIENT` with the wished version (ie: '2013
' for Visual Studio 2013,...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions