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

前端 未结 4 1800
谎友^
谎友^ 2020-12-14 02:56

I am working on a web application which interacts with TFS. When I upload my application to windows azure cloud I am getting this error message .

appreciate your inp

4条回答
  •  再見小時候
    2020-12-14 03:41

    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

     --your webrole
        
                  
              
    
    

    start up script pasted below:

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

提交回复
热议问题