BUG: "Failed to Reload Project" Error When Checking In VB File

Last reviewed: December 2, 1997
Article ID: Q177409
The information in this article applies to:
  • Microsoft Visual SourceSafe, 32-bit, for Windows, version 5.0
  • Microsoft Visual Basic Control Creation, Professional, and Enterprise Editions for Windows, version 5.0

SYMPTOMS

Checking in or undoing a check out of an existing Visual Basic project file (.vbp) in Visual SourceSafe causes the following error message:

  Failed to Reload the Project.  Please close the project from the file
  menu and re-open it to get the correct versions of all the files loaded
  into memory.

Then, the source code status box opens and Visual Basic hangs.

Similar problems might occur if you perform the same operations on other files within the project (for example, forms, modules, etc.).

CAUSE

"Remove Local copy after Add or Check In" is selected.

RESOLUTION

Deselect the "Remove Local copy after Add or Check In" option.

This can only be done through the Visual SourceSafe Explorer because the option is unavailable (grayed out) from the Visual Basic IDE Options dialog box. Furthermore, because the Visual Basic IDE inherits this option from Visual SourceSafe, changing there changes it in Visual Basic.

In Visual SourceSafe:

  1. On the Tools menu, click Options.

  2. Click the Local Files tab

  3. Deselect "Remove Local copy after Add or Check In" option.

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

After checking in the .vbp, Visual Basic tries to reload the project, but because "Remove Local copy after Add or Check In" removes the local copy, the reload fails. Having this option selected can also cause a General Protection Fault to occur in Visual Basic when you add a new project to Visual SourceSafe from Visual Basic.

Steps to Reproduce Behavior

  1. Start Visual SourceSafe Explorer.

  2. On the Tools menu, click Options, click the Local Files tab, and select "Remove Local copy after Add or Check In".

  3. Click OK.

  4. Exit Visual SourceSafe Explorer.

  5. Start Visual Basic 5.0.

  6. Open an existing project(.vbp).

  7. From Visual Basic, check out the .vbp.

  8. From Visual Basic, undo or Check in the .vbp.

If Visual Basic hangs, you need to "End Task" in the Task Manager to shut it down.

For more information related to this symptom, please see the following articles in the Microsoft Knowledge Base:

   ARTICLE-ID: Q171803
   TITLE     : FIX: Problems Retrieving VB 5.0 Projects from Visual
               SourceSafe

   ARTICLE-ID: Q176351
   TITLE     : BUG: Referenced Project Causes "Failed to Reload the
               Project"


Additional query words: remove
Keywords : ssvb kberrmsg
Version : WINDOWS:5.0
Platform : WINDOWS
Issue type : kbbug


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: December 2, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.