Visual Studio Binding Problem

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
scottctr
Posts: 8
Joined: Tue Jun 19, 2007 8:14 pm

Visual Studio Binding Problem

Post by scottctr » Mon Jul 16, 2007 8:49 am

Using SourceGear 3.1.9 (3798) and Visual Studio 2005

I'm having trouble getting Visual Studio to bind to the correct Vault folder. As my project is loading up, the bindings seem to be correct since I can see the lock icons next to the files I don't have checked out and checks next to the ones I do. But towards the end of the project loading, things start going wrong again. The icons all turn to the new file (plus sign) icons.

Before loading the project I verified that the working folder was correct in Vault: C:\level1\level2\level3\level4\MyProject, but after Visual Studio finishes loading the project the working folder in Vault is now C:\level1\level2\level3\level4 (the MyProject folder has been dropped).

When I open the Change Source Control dialog in Visual Studio the Server Binding is set to what I want it to be set to, but it is shown as being invalid.

Can someone tell me how to fix this binding problem? ...and then the proper way to control bindings when working with Visual Studio so I don't get into this situation again.

For what it's worth, the project in question was started by copying from another solution and then renaming. No doubt that I did something wrong in that process.

Thanks.
Scott C.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Mon Jul 16, 2007 10:55 am

Have you tried doing a fresh open from source control into a fresh working directory?

This may help restore the proper bindings.
Linda Bauer
SourceGear
Technical Support Manager

scottctr
Posts: 8
Joined: Tue Jun 19, 2007 8:14 pm

Post by scottctr » Mon Jul 16, 2007 11:30 am

I'm not sure I'm doing exactly what you have in mind, but it didn't work as I was hoping. I created a new solution and Added a Project From Source Control. The project was added, but all the files show up as new files in the IDE and the binding still shows as invalid.

...seems really strange that it can't find the files it just pulled down from Vault.

scottctr
Posts: 8
Joined: Tue Jun 19, 2007 8:14 pm

Post by scottctr » Mon Jul 16, 2007 11:34 am

I just noticed that something I didn't while trying to add from source control created a new subfolder in Vault: C:\level1\level2\level3\level4\MyProject\MyProject.

Scott C.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Mon Jul 16, 2007 12:48 pm

A fresh open from source control means clearing or backing up your solution from your local drive, then opening VS.NET and selecting File->Source control->Open from Source Control into an empty working directory.
Linda Bauer
SourceGear
Technical Support Manager

scottctr
Posts: 8
Joined: Tue Jun 19, 2007 8:14 pm

Post by scottctr » Mon Jul 16, 2007 1:22 pm

I opened the project from $\level1\level2\level3\level4\MyProject into C:\level1\level2\level3\level4\MyProject4. All of the files in the project appear as new (with the plus icon and a caution icon). When I go to Change Source Control, the Server Binding is correct but shows as invalid.

At this point I try to set the server binding and notice that, in the Add to Vault Folder window that comes up, the working directory is now C:\level1\level2\level3\level4\MyProject\MyProject -- extra folder added on the end. If I go ahead and try to bind to the folder with the extra level, it still shows as invalid in the Visual Studio Change Source Control window.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue Jul 17, 2007 10:38 am

I discussed this with our IDE specialist and we suggest upgrading to Vault 3.5.2 before further troubleshooting. There were many fixes in IDE integration after Vault 3.1.x. This may resolve the problem, and if not, at least we'll be troubleshooting a version with better functionality.
Linda Bauer
SourceGear
Technical Support Manager

scottctr
Posts: 8
Joined: Tue Jun 19, 2007 8:14 pm

Post by scottctr » Wed Jul 18, 2007 6:11 am

I believe that I've resolved this problem by creating a new project, moving all the files to it, and then rebinding.

Is the move from 3.1 to 3.5 a free one? If so, I'll mention it to our administrators.

Thanks.
Scott C.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Wed Jul 18, 2007 7:40 am

Thanks for the update.

You need Gold Support to upgrade from Vault 3.1.x to 3.5.x. If you don't have Gold Support, it's $99 per client license.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply