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:
- http://www.theringworx.com/blog/?p=494
- https://lajak.wordpress.com/2011/08/30/tfs2010-retrieve-associated-workitems-to-changesets-tfs-api/
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
Post a Comment