SetActiveRepositoryID The device is not ready.
Posted: Thu May 29, 2008 7:00 pm
_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.
_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.