Page 1 of 1

Problems connecting to a server

Posted: Tue Aug 14, 2007 6:35 am
by xara
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.'

Posted: Tue Aug 14, 2007 7:18 am
by jeremy_sg
You need to use the URL for your server. Try this:

Code: Select all

http://Vault01/VaultService

Posted: Tue Aug 14, 2007 7:22 am
by xara
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.

Posted: Tue Aug 14, 2007 8:36 am
by xara
Again, I found my own solution.

The Vault server is version 3.5.2 but I'd downloaded the latest DLLs. Reverted to the historical DLLs and everything works.

Unfortunately, the object model is a good deal less rich...in particular, iterating over files looks a bit more complex than it ought to be.

Can someone tell me what im doing wrong ?

Posted: Fri Aug 29, 2008 3:15 pm
by birdbuster
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

Re: Problems connecting to a server

Posted: Fri Aug 29, 2008 3:38 pm
by jeremy_sg