Microsoft KB Archive/320860

= PRB: &quot;Operation Could Not Be Completed&quot; Error Message During Project Check In When You Use Visual SourceSafe =

Article ID: 320860

Article Last Modified on 2/23/2007

-

APPLIES TO

 Microsoft Visual SourceSafe 6.0C, when used with:  Microsoft Visual Studio .NET 2002 Professional Edition

 Microsoft Visual Studio .NET 2002 Enterprise Architect

 Microsoft Visual Studio .NET 2002 Enterprise Developer 

-

<div class="notice_section">

This article was previously published under Q320860

<div class="symptoms_section">

SYMPTOMS
You can integrate a solution that is created by using Visual Studio .NET with Visual SourceSafe to implement source code control and to facilitate development in a team environment.

When you integrate a Visual Studio .NET solution with Visual SourceSafe, a project is created that can be administered from Visual SourceSafe Explorer. However, if you delete this project, or if you delete and destroy this project in Visual SourceSafe Explorer while the project is checked out in the Visual Studio .NET integrated development environment (IDE), you receive the following error message when you try to check in the project:

The operation could not be completed

Additionally, the corresponding .sln file is deleted from the user's hard disk, which may result in data loss.

<div class="resolution_section">

RESOLUTION
If the project is deleted but is not destroyed, the project can be recovered from Visual SourceSafe Explorer. After recovery, you must check in the solution from the Visual Studio .NET IDE.

If the project is deleted and destroyed, you must restore the .sln file from a backup.

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in Visual SourceSafe.

<div class="moreinformation_section">

Steps to Reproduce the Behavior
<ol> Start Visual Studio .NET, and then create a blank solution.</li> Follow these steps to place the solution under source code control: <ol style="list-style-type: lower-alpha;"> In Solution Explorer, right-click the solution, and then click Add Solution to Source Control.</li> Log on to a Visual SourceSafe database.</li> Click OK to accept the default Visual SourceSafe project name and folder structure, and then click Yes to create the project.</li></ol> </li> In Solution Explorer, right-click the solution, and then click Check Out.</li> In the Check Out dialog box, make sure that all of the items in the solution hierarchy are selected, and then click Check Out.</li> Start Visual SourceSafe Explorer, and then log on to the database that you used in step 2b.</li> In Visual SourceSafe Explorer, delete the project that you created in step 2c. Click Yes All in the resulting message dialog box, which states that the solution is currently checked out. Note that the problem reproduces regardless of whether you destroy the project permanently.</li> In the Visual Studio .NET IDE, right-click the solution in Solution Explorer, and then click Check In.</li> In the Check In dialog box, make sure that all of the items in the solution hierarchy are selected, and then click Check In.</li> Click Yes All two times, and then click OK. Notice that you receive the error message that is listed in the &quot;Symptoms&quot; section. Additionally, notice that the solution still appears as being checked out in the Visual Studio .NET IDE and that the .sln file has been deleted from the hard disk.</li></ol>

Keywords: kbprb KB320860

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.