I recently got a new laptop and I am now running 64-bit Windows Vista and today I was working on some custom code using the Team Foundation Server API. My unit tests ran great but when the time came to test the final product I started getting a weird error:
[System.BadImageFormatException]: {"Could not load file or assembly 'Microsoft.TeamFoundation.Client, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. An attempt was made to load a program with an incorrect format."}
After scratching my head a few times and making sure I had all the correct project references and that I had done everything right I started digging a little bit. I found some forum post that gave me a hint, I tried it and it worked;
When you use the TFS API you need to make sure you set the 'Platform target' project property to x86. You can find this property on the 'Build' tab or page of the Project Properties.
See also: http://msdn.microsoft.com/en-us/library/ms164699.aspx
Database development with DBPro as part of your application's lifecycle – D. Omar Villarreal
Note: Visual Studio 2008 Team Edition for Dtabase Developers, aka DBPro, is now part of the Developer edition (see the "Better together" section here for details) so if you own the Developer Edition and you are not using DBPro, this is your opportunity to jump-start your database development using DBPro.
We will discuss how you can take advantage of the database development tools included in Visual Studio Team System to better manage your database changes. Topics include:
- Declarative database development
- Efficient version control of your database
- Refactoring
- Unit Testing Stored Procedures
- Deploying your database
- Features from the upcoming DBPro GDR (General Distribution Release)
- And more...
For more information visit www.DallasVSTS.com.
Go register and and mark your calendars! The 2008 Patterns and Practices Summit will take place in Redmond the week of November 3, 2008. Attend the event to gain lot of knowledge and attend the "Evening events" :-)
Take a look at the sessions and the schedule.