DOCUMENT:Q317938 09-APR-2002 [ssafe] TITLE :PRB: *Source Control cache is not always updated when it should PRODUCT :Microsoft SourceSafe PROD/VER:: OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual SourceSafe 6.0c, used with: - Microsoft Visual Studio.NET (2002), Professional Edition - Microsoft Visual Studio.NET (2002), Enterprise Architect Edition - Microsoft Visual Studio.NET (2002), Enterprise Developer Edition ------------------------------------------------------------------------------- SYMPTOMS ======== Source control operations fail when the status of source control has not been updated in Visual Studio. Examples of this behavior occur in the following scenarios: - After you enable multiple checkouts, Visual Studio does not allow you to perform multiple checkouts. - When you click Get Latest Version after another user has recently updated a file, Visual Studio does not provide the latest copy of the file. CAUSE ===== Visual Studio has cached an out-of-date source control server state. RESOLUTION ========== Close and then reopen Visual Studio to refresh the source control cache. MORE INFORMATION ================ Steps to Reproduce Behavior --------------------------- Scenario 1: Visual Studio Does Not Allow Multiple Checkouts After You Enable Multiple Checkouts 1. In Visual SourceSafe Administrator, disable multiple checkouts. To do this, on the Tools menu, click Options and then disable multiple checkouts on the General tab. 2. In Visual Studio, add an entire solution to source control. To do this, on the File menu, click Source Control, and then click Add Solution to Source Control. 3. In Visual SourceSafe Explorer, use a different user to check out one of the files in the solution that you added in step 2. When you attempt to check out the same file in Visual Studio, the operation fails. 4. In Visual SourceSafe Administrator, enable multiple checkouts. To do this, on the Tools menu, click Options and then enable multiple checkouts on the General tab. When you attempt to check out the same file in Visual Studio, sometimes the checkout fails unexpectedly, as if the Multiple Checkouts option is still disabled. Scenario 2: Get Latest Version of a File That Another User Recently Checked In 1. User1 checks in a file. 2. User2 clicks Get Latest Version of the same file. The expected behavior is that User2 now has the version that User1 just checked in. However, sometimes the file can appear unchanged to User2. Additional query words: SourceSafe source control caching cache get latest multiple checkout fail ====================================================================== Keywords : Technology : kbSSafeSearch kbAudDeveloper kbSSafe600C Version : : Issue type : kbprb ============================================================================= 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. Copyright Microsoft Corporation 2002.