vb.net - Value of type 'Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer' cannot be converted to 'System.Type -


i'm working on custom tfs build workflow based on code found in 2 blogs:

when implement vb.net code within xaml workflow, i'm getting following errors on build runtime:

the build process failed validation. details:

validation error: private implementation of activity '1: dynamicactivity' has following validation error: compiler error(s) encountered processing expression "tfsservice".

value of type 'microsoft.teamfoundation.versioncontrol.client.versioncontrolserver' cannot converted 'system.type'.

validation error: private implementation of activity '1: dynamicactivity' has following validation error: compiler error(s) encountered processing expression "tfs.getservice(of versioncontrolserver)();".

end of expression expected.

i've traced error down section of code (simplified xaml):

tfs=microsoft.teamfoundation.client.tfsteamprojectcollectionfactory.getteamprojectcollectionfactory(new uri("myteamstfsserver")) tfsservice = tfs.getservice(of versioncontrolserver)() 

i've tried changing type of tfsservice both microsoft.teamfoundation.versioncontrol.client.versioncontrolserver , system.type without success.

from can tell error occurring in "of versioncontrolserver".

has ever encountered this? , if how did resolve it?

turns out issue url using, made typo when entering in. yay descriptive error messages...

i found while checking authentication using 2 methods:

tfs.hasauthenticated tfs.authenticate(); 

my code blew out when running authenticate() method.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -