Problems connecting to a server

Post your questions regarding using the Vault and Fortress API in your programs.

Moderator: SourceGear

Post Reply
xara
Posts: 4
Joined: Tue Aug 14, 2007 6:30 am

Problems connecting to a server

Post by xara » Tue Aug 14, 2007 6:35 am

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.'

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Tue Aug 14, 2007 7:18 am

You need to use the URL for your server. Try this:

Code: Select all

http://Vault01/VaultService

xara
Posts: 4
Joined: Tue Aug 14, 2007 6:30 am

Post by xara » Tue Aug 14, 2007 7:22 am

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.

xara
Posts: 4
Joined: Tue Aug 14, 2007 6:30 am

Post by xara » Tue Aug 14, 2007 8:36 am

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.

birdbuster
Posts: 9
Joined: Thu Mar 29, 2007 10:31 am
Location: Kent,WA

Can someone tell me what im doing wrong ?

Post by birdbuster » Fri Aug 29, 2008 3:15 pm

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

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Re: Problems connecting to a server

Post by jeremy_sg » Fri Aug 29, 2008 3:38 pm

Subscribe to the Fortress/Vault blog

Post Reply