I am having problems connecting to my Vault repository. Possibly through not understanding URIs and the like very well.
Given a machine name that hosts Vault of e.g. 'Vault01', a repository I want to connect to 'Test', and a folder underneath that called 'VaultNantTest', how can I form the URI in such a way that the Vault API will be able to connect?
E.g. at the moment I have:
string url = @"\\Vault01\$"; //nb I've tried a few variations on this theme
string repository = @"Test";
// username and password
ServerOperations.Login();
Error message generated is 'The connection to the server failed: server cannot be contacted or uses a protocol that is not supported by this client. Unable to connect to \\Vault01\$. No server was found at the specified URL. Please verify your network settings using the Options dialog under the Tools menu in the Vault GUI Client. Web Exception: The network path was not found.'
Problems connecting to a server
Moderator: SourceGear
You need to use the URL for your server. Try this:
Code: Select all
http://Vault01/VaultService
Yes, silly me, I got that and I can connect.
However now it returns the following error (both from VS and NAnt):
The server uses a protocol that is not supported by this client. (SOAPException).
System.Exception was unhandled
Message="The server uses a protocol that is not supported by this client."
Source="VaultClientIntegrationLib"
StackTrace:
at VaultClientIntegrationLib.ServerOperations.Login(AccessLevelType altCommand, Boolean bAllowAuto, Boolean bSaveSession)
at VaultClientIntegrationLib.ServerOperations.Login()
etc.
However now it returns the following error (both from VS and NAnt):
The server uses a protocol that is not supported by this client. (SOAPException).
System.Exception was unhandled
Message="The server uses a protocol that is not supported by this client."
Source="VaultClientIntegrationLib"
StackTrace:
at VaultClientIntegrationLib.ServerOperations.Login(AccessLevelType altCommand, Boolean bAllowAuto, Boolean bSaveSession)
at VaultClientIntegrationLib.ServerOperations.Login()
etc.
-
- Posts: 9
- Joined: Thu Mar 29, 2007 10:31 am
- Location: Kent,WA
Can someone tell me what im doing wrong ?
string url = "http://isisourcevault";
string username = "jdeerwester";
string password = "password";
string repository = "FortressTestZone";
ServerOperations.client.LoginOptions.URL = url;
ServerOperations.client.LoginOptions.User = username;
ServerOperations.client.LoginOptions.Password = password;
ServerOperations.client.LoginOptions.Repository = repository;
ServerOperations.Login();
I can ping isisourcevault so im not sure whats wrong
string username = "jdeerwester";
string password = "password";
string repository = "FortressTestZone";
ServerOperations.client.LoginOptions.URL = url;
ServerOperations.client.LoginOptions.User = username;
ServerOperations.client.LoginOptions.Password = password;
ServerOperations.client.LoginOptions.Repository = repository;
ServerOperations.Login();
I can ping isisourcevault so im not sure whats wrong
Re: Problems connecting to a server
Try to set the URL to http://isisourcevault/VaultService
Subscribe to the Fortress/Vault blog