问题
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