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.
Problem in connecting to vault server using NANT
Moderator: SourceGear
Re: Problem in connecting to vault server using NANT
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
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
Re: Problem in connecting to vault server using NANT
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.
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.
Re: Problem in connecting to vault server using NANT
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.The server uses a protocol that is not supported by this client
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support