Could not load file or assembly 'Microsoft.TeamFoundation.WorkItemTracking.Client.Cache' or one of its dependencies

This is because ,your project is trying to use a 32-bit dll in a 64-bit environment(azure)

To solve this type of issues ,create a start up script with the below given commands

Copy below startup script to a text file and save as "setup.cmd" . Then include this file into your web role project,set "copy local"=true then open your ServiceDefinition.csdef below given startup command inside webrole tag

<webrole > --your webrole
    <Startup>
              <Task commandLine="setup.cmd" executionContext="elevated" />
          </Startup>
</webrole >

start up script pasted below:

%windir%\system32\inetsrv\appcmd set config -section:system.applicationHost/applicationPools /applicationPoolDefaults.enable32BitAppOnWin64:"True" /commit:apphost

I resolved this issue by removig the respective DLL from the bin folder of my asp.net web project.

Thanks and regards,


I resolved this by setting the Enable 32-Bit applications option to True in the Advanced Settings of the application pool which the site used.

Tags:

Asp.Net

Azure