Using the API for C# .Net
Could not find the command to Create New Repository or to Delete current Respository.
Would any assist me with step for Creating Repository, and Deleting.
Creating Repository
Moderator: SourceGear
//HostName, UserName, Password are define to match my Vault URL Services
ClientInstance LClient = new ClientInstance();
LClient.Init(VaultClientNetLib.VaultConnection.AccessLevelType.Client);
LClient.Login(HostName, UserName, Password);
LClient.Connection.AddRepository("New Repository", true);
LClient.Logout();
it throw an error "Object reference not set to an instance of an object"
it fall over when it try to do LClient.Connection.AddRepository("New Repository", true);
can you assist me with this problem I having
thanks.
ClientInstance LClient = new ClientInstance();
LClient.Init(VaultClientNetLib.VaultConnection.AccessLevelType.Client);
LClient.Login(HostName, UserName, Password);
LClient.Connection.AddRepository("New Repository", true);
LClient.Logout();
it throw an error "Object reference not set to an instance of an object"
it fall over when it try to do LClient.Connection.AddRepository("New Repository", true);
can you assist me with this problem I having
thanks.
You'll need to change your access level parameter to Init() to be VaultClientNetLib.VaultConnection.AccessLevelType.Admin, so the administrative set of web services on the server is available to the client instance.
Also, be sure to supply a user in the admin group when you perform the login.
Also, be sure to supply a user in the admin group when you perform the login.
Shaw Terwilliger
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`
SourceGear LLC
`echo sterwill5sourcegear6com | tr 56 @.`