Team Foundation Server示例中的InvalidProgramException

时间:2008-10-07 14:08:46

标签: c# exception tfs

您好,我在尝试运行名为“C#Example.WorkItemBrowser”的示例项目时遇到System.InvalidProgramException。 当我尝试执行这些行时,异常也会出现:

TeamFoundationServer tfserver = new TeamFoundationServer("http://localhost:8085");
tfserver.EnsureAuthenticated();
WorkItemStore store = new WorkItemStore(tfserver);
Console.WriteLine(store.Projects.Count);

我正在使用2008 Visual Studio SDK。

PEverify for assembly Microsoft.TeamFoundation.WorkItemTracking.Client.dll

得到了这个输出:

[MD]: Error: Value class has neither fields nor size parameter. [token:0x020000B3]
[MD]: Error: Value class has neither fields nor size parameter. [token:0x020000BF]
[MD]: Error: Value class has neither fields nor size parameter. [token:0x020000C4]
3 Error(s) Verifying Microsoft.TeamFoundation.WorkItemTracking.Client.dll

重新下载并安装SDK以及卸载和安装以及再次安装.net 3.5 sp1都无济于事。

我的问题描述有问题或者其他地方没有发生吗?

2 个答案:

答案 0 :(得分:2)

答案 1 :(得分:0)

我只是一个非常相似的问题here

事实证明,您必须在正在执行此代码的计算机上安装Team Explorer。您是将其部署到另一台计算机上还是在未安装Team Explorer的计算机上尝试此操作?