Article From:

In the use of libgit2sharp development:

LibGit2Sharp.LibGit2SharpException: too many redirects or authentication replays
The cause of the mistake is in addition to the online problem:
1、The deployment server and the TFS (GIT) server are not in the same domain. Two computers must be added to the sample field.
2、The two servers are not in the same domain. When authenticating, the user name should be added to the domain (domain / domain user name).
There are two problems in the use of sharpsvn development:
1、1>—— All restarted has been started: Project: KM.TFS2SVN.Task, configuration: Release Any CPU —
1>d:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2052,5): warning MSB3270: The processor architecture of the generated project is “MSIL” and quotes “SharpSvn, Version=1.9007.3987.251, Culture=neutral, PublicKeyToken=d72967259488”.The processor architecture “AMD64” of 5a28, processorArchitecture=AMD64 does not match. This mismatch can cause failure at run time. Consider changing the target processor architecture of your project through configuration manager to make your project and lead.Use the inter processor architecture to be consistent, or to cite a processor architecture that is consistent with the target processor architecture of your project.
1>d:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(3809,5): warning MSB3187: Reference assembly “E:\LIZHENHONG\Demo\KM.TFS2SVN\packages\SharpSvn.1.9-x64.1.9007.3987.251\lib\net40\SharpSvn.dll”It’s about another processor, not the application.
The solution: change the platform target (x86\x64) according to the operating system you deploy is x86 or x64.
Right key of the project — property — generation — platform target
2、System.IO.FileNotFoundException: Failed to load file or assembly “SharpSvn.dll” or one of its dependencies. The specified module can not be found.
File name: “SharpSvn.dll”.

This may also come down to a mismatched version of the Microsoft Visual C++ Redistributable Package depending on the version of SharpSvn and the version of Windows/Visual Studio.

Newer versions of SharpSvn have a dependency on the “Microsoft Visual C++ 2010 SP1 Redistributable Package”.

x64 –

x86 –

Leave a Reply

Your email address will not be published. Required fields are marked *