This article was previously published under Q320860
This article has been archived. It is offered "as is" and will no longer be updated.
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.
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.
Microsoft has confirmed that this is a problem in Visual SourceSafe.
Steps to Reproduce the Behavior
Start Visual Studio .NET, and then create a blank solution.
Follow these steps to place the solution under source code control:
In Solution Explorer, right-click the solution, and then click Add Solution to Source Control.
Log on to a Visual SourceSafe database.
Click OK to accept the default Visual SourceSafe project name and folder structure, and then click Yes to create the project.
In Solution Explorer, right-click the solution, and then click Check Out.
In the Check Out dialog box, make sure that all of the items in the solution hierarchy are selected, and then click Check Out.
Start Visual SourceSafe Explorer, and then log on to the database that you used in step 2b.
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.
In the Visual Studio .NET IDE, right-click the solution in Solution Explorer, and then click Check In.
In the Check In dialog box, make sure that all of the items in the solution hierarchy are selected, and then click Check In.
Click Yes All two times, and then click OK. Notice that you receive the error message that is listed in the "Symptoms" 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.