assembly is not compatible with the 64-bit process

2020-07-18 08:06发布

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 ?

2条回答
等我变得足够好
2楼-- · 2020-07-18 08:14

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.

查看更多
爱情/是我丢掉的垃圾
3楼-- · 2020-07-18 08:28

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

查看更多
登录 后发表回答