_ClientInstance _myClient = new ClientInstance();
_myClient.Init(VaultClientNetLib.VaultConnection.AccessLevelType.Client, LocalStoreBasePath);
_myClient.Login(Host, Username, Password);
VaultRepositoryInfo[] reps = null;
//List all the repositories on the server.
_myClient.ListRepositories(ref reps);
foreach (VaultRepositoryInfo r in reps)
{
if (String.Compare(r.RepName, repositoryName, true) == 0)
{
_myClient.SetActiveRepositoryID(r.RepID, _myClient.Connection.Username, r.UniqueRepID, true, true);
break;
}
}
}
What I try to do is login into Vault, loop through the list of repositories and set active repository when there's a match on a respository name I choose.
I passed login, get back correctly list of repositories, however, when I call SetActiveRepository , I got the error "The device is not ready"
Please help.
Phu Tran.
SetActiveRepositoryID The device is not ready.
Moderator: SourceGear
-
- Posts: 9
- Joined: Thu May 29, 2008 6:53 pm
-
- Posts: 9
- Joined: Thu May 29, 2008 6:53 pm
SourceGear vault Server version 3.1.9
SourceGear vault Server version 3.1.9
Thanks.
Thanks.
-
- Posts: 9
- Joined: Thu May 29, 2008 6:53 pm