20.1.13

IIS error: "An attempt was made to load a program with an incorrect format" while Migrating web apps from IIS 7 to IIS 8

Lately we've upgraded our TFS environment to TFS 2012, as subsequent we've upgraded the IIS on the machine that hosts TFS web subscription events.

After upgrading the IIS, we've got the following error (when trying to connect to the web service).



Could not load file or assembly 'Microsoft.TeamFoundation.WorkItemTracking.Client.DataStoreLoader' or one of its dependencies. An attempt was made to load a program with an incorrect format.



How to fix:
You need to enable the IIS application pool to run in 32bit.
IIS->Application pools-> right click on the relevant application pool->advanced settings-> change "Enable 32-bit Application" to "true"





4 comments:

  1. Anonymous14/5/13 12:01

    Thanks, worked for me on IIS 7.

    ReplyDelete
  2. Anonymous1/8/13 15:58

    Can i know the reason

    ReplyDelete
  3. Anonymous1/8/13 15:59

    Great !!! works fine :)

    ReplyDelete
  4. Anonymous22/5/14 23:26

    I don't know why that worked, but it worked. Thanks!

    ReplyDelete