In VB6, first logon always fails

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

Moderator: SourceGear

Post Reply
vrapp
Posts: 121
Joined: Tue Apr 06, 2004 12:34 pm
Contact:

In VB6, first logon always fails

Post by vrapp » Wed Jan 31, 2007 11:06 am

Hello,

in Vault Client, I have one profile stored with login and password, "automatically login using this profile" is checked, and when I open Client, it works OK.

But when I open a VB6 project integrated with Vault, there's error message "the username or password supplied is invalid". Then it opens up the dialog "connect to server" with filled username and server, but empty password and empty profile. I select the profile (the only one in dropdown box), which fills in the password; then I click OK, and it successfully connects. But next time it's the same over again.

And when that happens, next time I open Vault Client, it again shows me the dialog "connect to server"; the checkbox "automatically connect using this profile" has become unchecked; everything else is selected, so it's no big deal to click OK, but still, it seems that when VB is connecting to the server, something gets broken.

Is it possible to get rid of this error, and is it possible to automatically login with the selected profile in VB6?
Vadim Rapp

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Wed Jan 31, 2007 11:26 am

It sounds like VB6 is accessing old information instead of your current profile. Check out this article for a fix suggestion: http://support.sourcegear.com/viewtopic.php?t=2474.

dmurty
Posts: 37
Joined: Tue May 23, 2006 10:08 am
Contact:

Post by dmurty » Wed Jan 31, 2007 11:35 am

The way that vault ties an individual project to a profile is through the mssccprj.scc file with the SCC_Aux_Path setting. For this setting the vault server address and the profile to use is set. If the profile in this setting is not correct or is missing then when visual basic tries to open this project it will prompt you for a user name and password. Often when opening a group, if one of the projects does not have the correct setting in the mssccprj.scc file then it will prompt you for the user name and password. If all of the projects have the correct setting then it will not ask you for a user name and password.

vrapp
Posts: 121
Joined: Tue Apr 06, 2004 12:34 pm
Contact:

Post by vrapp » Wed Jan 31, 2007 12:17 pm

Beth wrote:It sounds like VB6 is accessing old information instead of your current profile. Check out this article for a fix suggestion: http://support.sourcegear.com/viewtopic.php?t=2474.
Much thanks, that fixed it.
Vadim Rapp

Post Reply