Microsoft KB Archive/194503

= PRB: VFP6/VSS6 File Could Not Be Mapped to the SourceSafe Project =

Article ID: 194503

Article Last Modified on 5/1/2001

-

APPLIES TO


 * Microsoft Visual SourceSafe 6.0 Standard Edition
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q194503



SYMPTOMS
When adding a project to SourceSafe in the Visual FoxPro (VFP) integrated development environment (IDE) you receive the message:

File could not be mapped to the SourceSafe project.

NOTE: This article uses the term "pjx" to refer to the VFP project, and "project" to refer to a SourceSafe project.



CAUSE
The project (.pjx) contains a file that is not in the home directory (the one that contains the .pjx file) or a subdirectory underneath it. The relative path from the .pjx file is stored in the Name field of the PJX. (You need to USE the .pjx as a table in order to see this.)

The SourceSafe integration returns the error when it cannot resolve this relative path to the .vbp file in its database.

For additional information, please see the following article in the Microsoft Knowledge Base:

164684 "File or Project not Found" Adding Files via Integration



RESOLUTION
It is recommended that all files in the pjx be either in the home directory or in a subdirectory underneath it.

Alternatively, you can create a project structure in SourceSafe that mirrors the directory structure on your hard drive before adding the pjx to SourceSafe.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
  Create a directory structure similar to:      C:\ projects\ pjxhome\ pjxother\  In VFP create a project ("proj1.pjx") and save it in the pjxhome subdirectory. With Proj1 project open, from the VFP project manager, select the Code Tab and then the New button to create a new program that will be added to the project. Save the program as program1.prg in the pjxother subdirectory. Add the pjx to SourceSafe, creating a new project to store the pjx. Make sure program1.prg is selected in the "Add Files to Source Control" dialog box.</ol>

RESULTS: You will receive the message.

Keywords: kbinterop kbprb KB194503

-

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

© Microsoft Corporation. All rights reserved.