Problem in connecting to vault server using NANT

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
arehman4u
Posts: 1
Joined: Wed Jan 14, 2009 5:58 am

Problem in connecting to vault server using NANT

Post by arehman4u » Wed Jan 14, 2009 6:35 am

Hi,
We are using vault client version 4.0.6.15954. While connecting to server we have to enable "Use SSL" check box.
Now, we are trying to run a NANT script to get latest of source code and getting problem to connect to server. It seems "vaultsetloginoptions" doesn't have attribute to support SSL. I tried using HTTPS instead of HTTP in URL but it gives following error.

INTERNAL ERROR
System.Exception: The server uses a protocol that is not supported by this clien
t. ---> System.Web.Services.Protocols.SoapException: 1021 : FailServiceVersionNo
tSupported
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClie
ntMessage message, WebResponse response, Stream responseStream, Boolean asyncCal
l)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodN
ame, Object[] parameters)
at VaultClientNetLib.ClientService.VaultService.ValidateServiceVersions(Int32
[] clientSupportedVersions)
at VaultClientNetLib.VaultConnection.Login(String strURLBase, String strUserL
ogin, String strPassword)
at VaultClientOperationsLib.ClientInstance.Login(String urlbase, String usern
ame, String password)
at VaultClientIntegrationLib.ServerOperations.Login(AccessLevelType altComman
d, Boolean bAllowAuto, Boolean bSaveSession)
--- End of inner exception stack trace ---
at VaultClientIntegrationLib.ServerOperations.Login(AccessLevelType altComman
d, Boolean bAllowAuto, Boolean bSaveSession)
at VaultClientIntegrationLib.ServerOperations.Login()
at NAnt.Contrib.Tasks.SourceGearVault.VaultTask.CheckLoggedIn()
at NAnt.Contrib.Tasks.SourceGearVault.vaultsetworkingfolder.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()


Any suggestion to how to connect in this scenario?

Thanks.

shannon

Re: Problem in connecting to vault server using NANT

Post by shannon » Wed Jan 14, 2009 9:36 am

What version of the Nant tasks are you using and what version server are you connecting to? The error message you're seeing usually means you have a version mismatch or you're trying to connect a Fortress client to a Vault server or vice versa.

Changing http to https will enable the ssl option, but you may have to accept the certificate first, see this post: http://support.sourcegear.com/viewtopic ... t=nant+ssl

manish
Posts: 1
Joined: Thu Apr 28, 2011 5:58 pm

Re: Problem in connecting to vault server using NANT

Post by manish » Thu Apr 28, 2011 6:00 pm

I am using the regular HTTP connection and I get the following error:

get:


BUILD FAILED

INTERNAL ERROR

System.Exception: The server uses a protocol that is not supported by this clien
t. ---> System.Web.Services.Protocols.SoapException: 1021 : FailServiceVersionNo
tSupported
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClie
ntMessage message, WebResponse response, Stream responseStream, Boolean asyncCal
l)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodN
ame, Object[] parameters)
at VaultClientNetLib.ClientService.VaultService.ValidateServiceVersions(Int32
[] clientSupportedVersions)
at VaultClientNetLib.VaultConnection.Login(String strURLBase, String strUserL
ogin, String strPassword)
at VaultClientOperationsLib.ClientInstance.Login(String urlbase, String usern
ame, String password)
at VaultClientIntegrationLib.ServerOperations.Login(AccessLevelType altComman
d, Boolean bAllowAuto, Boolean bSaveSession)
--- End of inner exception stack trace ---
at VaultClientIntegrationLib.ServerOperations.Login(AccessLevelType altComman
d, Boolean bAllowAuto, Boolean bSaveSession)
at NAnt.Contrib.Tasks.SourceGearVault.VaultTask.CheckLoggedIn()
at NAnt.Contrib.Tasks.SourceGearVault.vaultlabel.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()

Please send bug report to nant-developers@lists.sourceforge.net.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Problem in connecting to vault server using NANT

Post by Beth » Mon May 02, 2011 8:38 am

The server uses a protocol that is not supported by this client
This error means the versions don't match. If you have upgraded your Vault, then you need to download the version of nAnt that was built with that version of Vault.
Beth Kieler
SourceGear Technical Support

Post Reply