Get VersionNotSupported Exception with MSbuild - new Vault 8

If you are having a problem using Vault, post a message here.
Post Reply
alainjreij
Posts: 3
Joined: Fri Mar 27, 2015 11:30 am

Get VersionNotSupported Exception with MSbuild - new Vault 8

Post by alainjreij » Fri Mar 27, 2015 11:41 am

Hi,

After upgrading to vault 8 from vault5, our build scripts (that get files from vault) stopped working.

We use CCnet with MSbuild, and specifacally the MSBuild.Community.Tasks.Targets -> VaultGetFile task.

We get a VersionNotSupported exception.

Is this a know issue?

Thanks,

Alain

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

Re: Get VersionNotSupported Exception with MSbuild - new Vau

Post by Beth » Fri Mar 27, 2015 1:27 pm

The client used with your build needs to be upgraded as well.

If you are sure you put the latest client in place, then which versions of CC.NET and MSbuild are you using?

Can you either post where the error happens or send a log file?
Beth Kieler
SourceGear Technical Support

alainjreij
Posts: 3
Joined: Fri Mar 27, 2015 11:30 am

Re: Get VersionNotSupported Exception with MSbuild - new Vau

Post by alainjreij » Mon Mar 30, 2015 6:39 pm

Hi Beth,

Yes, we have have upgraded our vault clienst to version 8; here is the info you requested:

MSBuild version: 4.0.0.0

CCtray version: 1.4.4.83

Exception:
<error code="MSB4018" file="D:\BUILD\Compiler\include\MsBuild.Compilation.Tasks\Msbuild.Compilation.Properties.targets" line="539" column="5"><![CDATA[The "vaultgetfile" task failed unexpectedly.
System.Web.Services.Protocols.SoapException: 1021 : FailServiceVersionNotSupported
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 MSBuild.Community.Tasks.SourceGearVault.VaultBase.Login()
at MSBuild.Community.Tasks.SourceGearVault.vaultgetfile.InternalExecute()
at MSBuild.Community.Tasks.SourceGearVault.vaultgetfile.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)]]></error>


dll that is causing the error: MSBuild.Community.Tasks.SourceGearVault.dll

Thanks,

Alain

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

Re: Get VersionNotSupported Exception with MSbuild - new Vau

Post by Beth » Tue Mar 31, 2015 6:44 am

Do you have all the DLLs in the right place? Have you checked your DLL versions to make sure they aren't what you had before?

Did you download updated CCnet Dlls from our website?

Just in case it helps, here are a few references to other posts with the same issue.
Beth Kieler
SourceGear Technical Support

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

Re: Get VersionNotSupported Exception with MSbuild - new Vau

Post by Beth » Tue Mar 31, 2015 7:39 am

In addition, the DLL referenced in the error isn't one of our DLLs. The creator of that DLL will have to compile it against the latest version of our software.
Beth Kieler
SourceGear Technical Support

alainjreij
Posts: 3
Joined: Fri Mar 27, 2015 11:30 am

Re: Get VersionNotSupported Exception with MSbuild - new Vau

Post by alainjreij » Mon Apr 06, 2015 10:35 am

Hi,

This issue is resolved; we found the source code of the dll: MSBuild.Community.Tasks.SourceGearVault.dll and we modified and recompiled it.

Thanks,

Alain

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

Re: Get VersionNotSupported Exception with MSbuild - new Vau

Post by Beth » Mon Apr 06, 2015 3:09 pm

Thank you for the update. I'm happy to hear you are working again.
Beth Kieler
SourceGear Technical Support

Post Reply