spraints/git-tfs — Issue #99: Unable to clone on WinXP with VS 2008 only
Author: mpareja
Created: 2011-10-27 14:18:09+00:00
State: open

I receive the following error when trying to clone a TFS repository on a Windows XP box that only has Visual Studio 2008 installed:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.IOException: The process cannot access the file 'c:\profiles\mpareja\Local Settings\Temp\tmp191.tmp' because it is being used by another process.
at Microsoft.TeamFoundation.VersionControl.Client.Client.EndDownloadFile(IAsyncResult asyncResult, Stream& downloadStream)
at Microsoft.TeamFoundation.VersionControl.Client.Client.EndDownloadFile(IAsyncResult asyncResult)
at Microsoft.TeamFoundation.VersionControl.Client.Client.DownloadFile(String downloadUrl, String localFileName)
at Microsoft.TeamFoundation.VersionControl.Client.Item.DownloadFile(String localFileName)
at Sep.Git.Tfs.Vs2008.ItemDownloadStrategy.DownloadFile(IItem item)
at Sep.Git.Tfs.VsCommon.WrapperForItem.DownloadFile()
at Sep.Git.Tfs.Core.TfsChangeset.Update(IChange change, String pathInGitRepo, GitIndexInfo index, IDictionary`2 initialTree) in e:\projects\git-tfs\GitTfs\Core\TfsChangeset.cs:line 119
at Sep.Git.Tfs.Core.TfsChangeset.Rename(IChange change, String pathInGitRepo, GitIndexInfo index, IDictionary`2 initialTree) in e:\projects\git-tfs\GitTfs\Core\TfsChangeset.cs:line 77
at Sep.Git.Tfs.Core.TfsChangeset.Apply(IChange change, GitIndexInfo index, IDictionary`2 initialTree) in e:\projects\git-tfs\GitTfs\Core\TfsChangeset.cs:line 47
at Sep.Git.Tfs.Core.TfsChangeset.Apply(String lastCommit, GitIndexInfo index) in e:\projects\git-tfs\GitTfs\Core\TfsChangeset.cs:line 31
at Sep.Git.Tfs.Core.GitTfsRemote.<>c__DisplayClass6.b__4(GitIndexInfo index) in e:\projects\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 300
at Sep.Git.Tfs.Core.GitIndexInfo.Do(TextWriter stdin, IGitRepository repository, Action`1 action) in e:\projects\git-tfs\GitTfs\Core\GitIndexInfo.cs:line 21
at Sep.Git.Tfs.Core.GitIndexInfo.<>c__DisplayClass1.b__0(TextWriter stdin) in e:\projects\git-tfs\GitTfs\Core\GitIndexInfo.cs:line 12
at Sep.Git.Tfs.Core.GitHelpers.<>c__DisplayClassb.b__a() in e:\projects\git-tfs\GitTfs\Core\GitHelpers.cs:line 161
at Sep.Git.Tfs.Core.GitHelpers.Time(String[] command, Action action) in e:\projects\git-tfs\GitTfs\Core\GitHelpers.cs:line 183
at Sep.Git.Tfs.Core.GitHelpers.CommandInputPipe(Action`1 action, String[] command) in e:\projects\git-tfs\GitTfs\Core\GitHelpers.cs:line 157
at Sep.Git.Tfs.Core.GitIndexInfo.Do(IGitRepository repository, Action`1 indexAction) in e:\projects\git-tfs\GitTfs\Core\GitIndexInfo.cs:line 12
at Sep.Git.Tfs.Core.GitTfsRemote.<>c__DisplayClass6.b__3() in e:\projects\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 300
at Sep.Git.Tfs.Core.GitTfsRemote.<>c__DisplayClass1a.b__19() in e:\projects\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 393
at Sep.Git.Tfs.Core.GitTfsRemote.WithTemporaryEnvironment(Action action, IDictionary`2 newEnvironment) in e:\projects\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 403
at Sep.Git.Tfs.Core.GitTfsRemote.WithTemporaryIndex(Action action) in e:\projects\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 390
at Sep.Git.Tfs.Core.GitTfsRemote.Apply(String lastCommit, ITfsChangeset changeset) in e:\projects\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 299
at Sep.Git.Tfs.Core.GitTfsRemote.FetchWithMerge(Int64 mergeChangesetId, String[] parentCommitsHashes) in e:\projects\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 163
at Sep.Git.Tfs.Core.GitTfsRemote.Fetch() in e:\projects\git-tfs\GitTfs\Core\GitTfsRemote.cs:line 155
at Sep.Git.Tfs.Commands.Fetch.DoFetch(IGitTfsRemote remote) in e:\projects\git-tfs\GitTfs\Commands\Fetch.cs:line 70
at Sep.Git.Tfs.Commands.Fetch.Run(String[] args) in e:\projects\git-tfs\GitTfs\Commands\Fetch.cs:line 57
at Sep.Git.Tfs.Commands.Fetch.Run() in e:\projects\git-tfs\GitTfs\Commands\Fetch.cs:line 49
at Sep.Git.Tfs.Commands.Clone.Run(String tfsUrl, String tfsRepositoryPath, String gitRepositoryPath) in e:\projects\git-tfs\GitTfs\Commands\Clone.cs:line 39
at Sep.Git.Tfs.Commands.Clone.Run(String tfsUrl, String tfsRepositoryPath) in e:\projects\git-tfs\GitTfs\Commands\Clone.cs:line 32
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Sep.Git.Tfs.Util.GitTfsCommandRunner.Run(GitTfsCommand command, IList`1 args) in e:\projects\git-tfs\GitTfs\Util\GitTfsCommandRunner.cs:line 36
at Sep.Git.Tfs.GitTfs.Main(GitTfsCommand command, IList`1 unparsedArgs) in e:\projects\git-tfs\GitTfs\GitTfs.cs:line 56
at Sep.Git.Tfs.GitTfs.Run(IList`1 args) in e:\projects\git-tfs\GitTfs\GitTfs.cs:line 39
at Sep.Git.Tfs.Program.Main(String[] args) in e:\projects\git-tfs\GitTfs\Program.cs:line 24