Can't login - vault pro server with vault standard client?

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

Moderator: SourceGear

Post Reply
kayessaych
Posts: 5
Joined: Tue Apr 24, 2012 4:44 pm

Can't login - vault pro server with vault standard client?

Post by kayessaych » Tue Apr 24, 2012 5:10 pm

I'm just trying to connect to vault so I can play with adding a work item but can't get past the login part. The details are below!

ClientAPI 5.1.2.19281 - downloaded it today
VaultService "about" page says I'm on 5.1.2.19283 and that's what our installed clients say, too.

The actual sourcegear clients connect fine.

My code using one of the connection methods found around the boards - seems like the usual:

Code: Select all

A function:                
       string url = "http://intranet source gear site name:port number/VaultService";
       string username = "windows/vault user name";
       string password = "my password";
       string repository = "my repository";
       string workingFolder = @"my working folder";

       // set the login options and login/connect to a repository.
       Vault.Login(url, username, password, repository, workingFolder);

The Login function:

        ServerOperations.client.LoginOptions.URL = serverUrl;
        ServerOperations.client.LoginOptions.User = userName;
        ServerOperations.client.LoginOptions.Password = password;
        ServerOperations.client.LoginOptions.Repository = repository;
        ServerOperations.Login();


My unusual exception:
System.Exception: You are attempting to connect to a Vault Professional Server with a Vault Standard Client. Please download the correct client from http://sourcegear.com/vaultpro/downloads.html --->

System.Web.Services.Protocols.SoapException: 1025 : FailVaultClientCantConnectToVaultPro at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at VaultClientNetLib.ClientService.VaultService.ValidateServiceVersions(Int32[] clientSupportedVersions)
at VaultClientNetLib.VaultConnection.Login(String strURLBase, String strUserLogin, String strPassword)
at VaultClientOperationsLib.ClientInstance.Login(String urlbase, String username, String password)
at VaultClientIntegrationLib.ServerOperations.Login(AccessLevelType altCommand, Boolean bAllowAuto, Boolean bSaveSession)

--- End of inner exception stack trace ---

at VaultClientIntegrationLib.ServerOperations.Login(AccessLevelType altCommand, Boolean bAllowAuto, Boolean bSaveSession)
at VaultClientIntegrationLib.ServerOperations.Login()
at Vault.Login(String serverUrl, String userName, String password, String repository, String workingFolder) in ...\Vault.cs:line 165
at CustomVaultInterface.MainScreen.btnAddWorkItem_Click(Object sender, EventArgs e) in ...\MainScreen.cs:line 31

Edit:
This post has a similar problem but the resolution seemed to point to the same API examples that connect in the way I am...
http://support.sourcegear.com/viewtopic ... 48&t=18723

Can you not use the Client API to do this? Do you need to connect to the web service directly?

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Can't login - vault pro server with vault standard clien

Post by lbauer » Thu Apr 26, 2012 8:09 am

ClientAPI 5.1.2.19281 - downloaded it today
That's the Vault Standard Client API.

Use this link to download the Vault Pro API:

http://download-us.sourcegear.com/Vault ... _19283.zip

Vault Standard clients can't connect to a Vault Pro Server.

Hope that helps!
Linda Bauer
SourceGear
Technical Support Manager

kayessaych
Posts: 5
Joined: Tue Apr 24, 2012 4:44 pm

Re: Can't login - vault pro server with vault standard clien

Post by kayessaych » Thu Apr 26, 2012 12:07 pm

Well, that would make sense! :) Thank you. I'm not the one who set up Vault for our team. However, I'm curious, would she have gotten information about this?

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Can't login - vault pro server with vault standard clien

Post by lbauer » Thu Apr 26, 2012 12:31 pm

The Client API is a separate download from the Vault Pro Client and Vault Pro server.

The Vault Pro and Vault Standard pages look very similar, so it would be easy to download the Client API from the Vault Standard page.

http://www.sourcegear.com/
http://www.sourcegear.com/vault/downloads.html
http://www.sourcegear.com/vaultpro/downloads.html
Linda Bauer
SourceGear
Technical Support Manager

kayessaych
Posts: 5
Joined: Tue Apr 24, 2012 4:44 pm

Re: Can't login - vault pro server with vault standard clien

Post by kayessaych » Thu Apr 26, 2012 12:41 pm

Since my test worked after getting that bit of info, I can confirm the following for those searching the boards like a mad man like I was:

With Vault Pro 5.1.2.18283, the AddFortressItem example found below still works: http://support.sourcegear.com/viewtopic.php?f=31&t=8020

Thanks! I knew it was something goofy.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Can't login - vault pro server with vault standard clien

Post by lbauer » Fri Apr 27, 2012 12:35 pm

Thanks for the update. That's good news. : )
Linda Bauer
SourceGear
Technical Support Manager

Post Reply