Hi
We have TFS 2010 64-bit installed. We are trying to create a Web application to create custom WorkItems.
I have referenced Microsoft.TeamFoundation.WorkItemTracking.Client.dll and Microsoft.TeamFoundation.Client.dll. They are version 10.0.0.0. When I publish to IIS, it also copies Microsoft.TeamFoundation.WorkItemTrakacking.Client.Cache.dll, Microsoft.TeamFoundation.WorkItemTrakacking.Client.DataStore.dll, and Microsoft.TeamFoundation.WorkItemTrakacking.Client.RuleEngine.dll. They are version 10.2.0.0 - I assume that is the VS2010 SP1?
When we run in 64-bit apppool in IIS, we get BadImageFormatException: An attempt was made to load a program with an incorrect format. We can solve the problem by enabling 32-bit applications in the AppPool. We can also solve the problem by deleting the 3 "extra" DLLS: Cache, DataStore, and RuleEngine.
So my question is: Is 32-bit application support required to use TFS SDK on the server in custom ASP.NET application?
Or if not, how do we configure a pure 64-bit application?
var credential = new NetworkCredential(userName, password, domain); var projects = new TfsTeamProjectCollection(new Uri(serverUrl), credential); projects.EnsureAuthenticated(); var store = new WorkItemStore(projects); var project = store.Projects[projectName]; var item = new WorkItem(project.WorkItemTypes["bug"]); item.Title = "My Title"; item.State = "Active"; item.Description = "Hello\r\nTFS"; item.Save();