Team Foundation Server Sample中的InvalidProgramException异常 [英] InvalidProgramException in Team Foundation Server Sample

查看:129
本文介绍了Team Foundation Server Sample中的InvalidProgramException异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Hi I get an System.InvalidProgramException while trying to run the Example Project called "C# Example.WorkItemBrowser". The Exception also apears when I try to execute these lines:

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

我正在使用2008年Visual Studio SDK。

I'm using the 2008 Visual Studio SDK for that.

PE验证汇编Microsoft.TeamFoundation.WorkItemTracking.Client.dll

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

得到这个otuput:

got this otuput:

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

A fresh download and install of the SDK as well as deinstall and install as well as installing .net 3.5 sp1 again didn't help.

有问题吗

推荐答案

这解决了我的问题: http://blogs.msdn.com/b/jianges/archive/2008/03/28/tfs-sdk-will-cause-invalidprogramexception-while-running-as-64-bit.aspx

这篇关于Team Foundation Server Sample中的InvalidProgramException异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆