In addition, older versions of Visual Studio will sometimes not save the profile that was selected to connect with.
For either of these scenarios, manually editing the MSSCCPRJ.SCC file that exists in the working folder of the project will allow you to permanently change the profile the project connects with.
In order to do this, find the line that looks like this in the .scc file:
Code: Select all
SCC_Aux_Path = http://localhost/VaultService|profile:1
[URL of server to connect to]|[profile to connect with]:[repository ID]
To change the profile (or to add one if there is not one), merely change the text between the pipe ('|') and the colon (':') to match an existing profile. That profile will then be used to connect to the project when connecting via the IDE.
Additional Note: The same symptoms may occur in any of the IDEs if there are bad characters related to the source control bindings in the .csproj, .sln, or other project files.
To check this, open up the solution or project file in notepad and search for the "scc*" lines. In some cases, these lines can have extra characters in them, such as:
SccProjectName=""$/correct/path", JYJAAAAA" (which should be just "$/correct/path")
You can either remove these characters by manually editing them, or by unbinding and re-binding the project.