Workaround: Failed Replace component with Initial Baseline, there were errors during download

Summary

When using Rational Team Concert 2.0.0.1 and 3.0 clients for Microsoft Visual Studio IDE, you have a solution that has an application, for example ConsoleApplication1, as the StartUp Project. When you try to replace the component containing the solution with the Initial Baseline, it fails for being unable to delete the ConsoleApplication1.vshost.exe file.

More Information

Symptom

A Replace with Initial Baseline action fails with errors such as the following:

  • There were errors during download. It is recommended that components be reloaded. The reload will be incremental, loading only the missing items. You can further reduce the reload time by reloading just the projects out of sync.
  • Unable to delete folder /ConsoleApplication1/ConsoleApplication1/bin in component SourceComponent
  • Unable to delete folder /ConsoleApplication1/ConsoleApplication1 in component SourceComponent
  • Unable to delete folder /ConsoleApplication1 in component SourceComponent

Cause

Visual Studio keeps the hosting process running as long as the solution is open.

Diagnosing the problem

Open the StartUp project properties. You should see the Enable the Visual Studio hosting process option checked in the Debug page.

Resolving the problem

  1. Before attempting the replace, open the StartUp project properties, and clear the Enable the Visual Studio hosting process check box, but do not save the change.

    Uncheck Enable the Visual Studio hosting process option

  2. Now, Replace with Initial Baseline should complete without errors. If you already attempted the replace and saw this error, it is still harmless; the replace would still have been successful. Examine your pending changes to confirm the same.

Related Links

Workaround: Failed move in repository, unable to delete vshost.exe


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Feedback
Was this information helpful? Yes No 0 people rated this as helpful.