【问题标题】:InvalidProgramException in Team Foundation Server SampleTeam Foundation Server 示例中的 InvalidProgramException
【发布时间】:2010-09-15 18:29:25
【问题描述】:

您好,我在尝试运行名为“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。

针对 Microsoft.TeamFoundation.WorkItemTracking.Client.dll 程序集的 PVerify

得到这个输出:

[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 都没有帮助。

我的问题描述有问题还是其他地方没有发生?

【问题讨论】:

    标签: c# exception tfs


    【解决方案1】:
    【解决方案2】:

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

    事实证明,您必须在执行此代码的机器上安装 Team Explorer。您是将它部署到另一台机器上,还是在没有安装 Team Explorer 的机器上试用它?

    【讨论】:

      猜你喜欢
      • 2017-06-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-26
      • 2010-10-11
      • 2018-08-30
      • 2014-05-07
      • 1970-01-01
      相关资源
      最近更新 更多