Gorgo.Live.ToString()

Mariusz, Gorzoch tech Blog

Method TryGetRowSet not found

with one comment

Today I come across below error when trying to use TFS API on the machine where SDK is not installed at all.

Method not found: ‘Boolean Microsoft.TeamFoundation.WorkItemTracking.Proxy.IWorkItemRowSets.TryGetRowSet(System.String, Microsoft.TeamFoundation.WorkItemTracking.Proxy.IRowSet ByRef)’.

System.MissingMethodException: Method not found: ‘Boolean Microsoft.TeamFoundation.WorkItemTracking.Proxy.IWorkItemRowSets.TryGetRowSet(System.String, Microsoft.TeamFoundation.WorkItemTracking.Proxy.IRowSet ByRef)’.

My solution was build on the dedicated build server and then deployed to destination server thru WebDeploy.

I’ve look around for the solution for a while and then come to the post:

http://blogs.msdn.com/b/bharry/archive/2013/02/13/10392771.aspx 

where someone pointed that Microsoft did a very bad think with update 2 for Visual Studio 2012. What it happened to be is that they adjusted version of the library “Microsoft.TeamFoundation.WorkItemTracking.Proxy.dll” to 11.0.60315.1, but they change it only in GAC and not in the official visual studio folder “C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ReferenceAssemblies\v2.0”.

So, it work in the way that :

“C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ReferenceAssemblies\v2.0” points that version of “Microsoft.TeamFoundation.WorkItemTracking.Proxy.dll” is “11.0.50727.1” where in reality our apps are looking into the GAC and using version “11.0.60315.1”.

In order to solve that problem you need to go to GAC folder  “C:\Windows\assembly\GAC_MSIL\Microsoft.TeamFoundation.WorkItemTracking.Proxy\11.0.0.0__b03f5f7f11d50a3a” (you can just use windows console) and copy our proxy library from there to your project and explicitly reference it.

Doing above solve problem in my case

Advertisements

Written by Mariusz Gorzoch

27 February 2014 at 10:20

Posted in Bez kategorii

One Response

Subscribe to comments with RSS.

  1. Thanks for this! It really helped

    Alex

    7 April 2014 at 15:34


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: