Article ID: 949024 - Last Review: February 11, 2008 - Revision: 1.5

"SourceSafe cannot create a new project or add a new file" error when adding a file to source control

Expand all | Collapse all
Source: Microsoft Support
RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.

Action

You try to add a file to a project in Visual SourceSafe using the Visual SourceSafe Explorer.

Result

You receive the following error message:

"SourceSafe cannot create a new project or add a new file because of possible database corruption. Ask you administrator to run Analyze on the database"

Cause

The aaaaaaaa.cnt file located in the Data folder is corrupt.

Resolution



Use these steps to fix the problem.  Note: before trying these steps we recommend you backup your VSS database.  See the article listed below that shows how to backup a VSS database.
  • Move the current aaaaaaaa.cnt file from the Data folder of the VSS database to a temporary folder.
  • Create an ASCII text file called aaaaaaaa.cnt.
  • Add the following line to this file:


              AAAAAAAA
  • Save this file in the Data folder of the VSS database
  • Run Analyze -F on the VSS database.



How To Back Up a Visual SourceSafe Database (http://support.microsoft.com/default.aspx?scid=kb;en-us;244016)

More Information

INFO: How SourceSafe Stores Log Files (http://support.microsoft.com/default.aspx?scid=kb;en-us;157714)

DISCLAIMER

MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE “MATERIALS”) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.

APPLIES TO
  • Microsoft Visual SourceSafe 2005 Standard Edition
  • Microsoft Visual SourceSafe 6.0d
  • Microsoft Visual SourceSafe 6.0C
Keywords: 
kbnomt kbrapidpub KB949024