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

前端 未结 4 1795
谎友^
谎友^ 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:28

    BadImageFormat Exception is almost always a problem between a 32bit dll trying to load up a 64bit dll or a DLL or executable is loaded as a 64-bit assembly, but it contains 32-bit features or resources.

    Try compiling your application down to x86 or vice versa and let me know how that works

    0 讨论(0)
  • 2020-12-14 03:33

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

    Thanks and regards,

    0 讨论(0)
  • 2020-12-14 03:35

    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.

    0 讨论(0)
  • 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

    <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
    
    0 讨论(0)
提交回复
热议问题