assembly is not compatible with the 64-bit processor architecture used by IIS on Windows Azure

安稳与你 提交于 2019-12-21 19:27:15

问题


I am getting a warning message when I try to run my asp.net application on my devmachine appfabric .and I am getting error message when I upload my application to azure cloud

project contains the following assembly: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ReferenceAssemblies\v2.0\Microsoft.TeamFoundation.WorkItemTracking.Client.DataStoreLoader.dll. This assembly is not compatible with the 64-bit processor architecture used by IIS on Windows Azure. To make sure that the role starts, you must replace this assembly with one that is compatible with this architecture."

Where I can get an azure compatible dll ?


回答1:


You need to run your application pool in 32-bit mode. Try running this appcmd (you can do this automatically using role startup task) to assign the default application pool settings to enable 32-bit support.

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




回答2:


I had the same issue and I set Build | Platform Target to Any CPU (previously some of them had been X86). This fixed the issue for me.



来源:https://stackoverflow.com/questions/12631849/assembly-is-not-compatible-with-the-64-bit-processor-architecture-used-by-iis-on

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!