简体   繁体   English

如何让Azure Compute Emulator以32位模式运行?

[英]How do I get Azure Compute Emulator to run in 32 bit mode?

So I found some articles here on Stack Overflow and elsewhere that show how to use Startup Tasks to set Azure to run in 32-bit mode. 所以我在Stack Overflow和其他地方发现了一些文章,展示了如何使用启动任务将Azure设置为以32位模式运行。

The problem is, this doesn't seem to work with the Compute Emulator. 问题是,这似乎不适用于Compute Emulator。

I wrote a Worker Role that runs a service which calls a legacy FORTRAN dll. 我写了一个Worker Role,它运行一个调用遗留FORTRAN dll的服务。 This DLL, however, only runs in x86 mode. 但是,此DLL仅在x86模式下运行。 So, I need to force the Azure emulator to enable 32-bit apps. 因此,我需要强制Azure模拟器启用32位应用程序。

I'm running on Windows 7 (or 8, if that works better), with either VS2010 or VS2012, and the error I am getting is "On this system, the Compute Emulator supports AnyCPU and x64." 我使用VS2010或VS2012运行Windows 7(或8,如果效果更好),我得到的错误是“在这个系统上,Compute Emulator支持AnyCPU和x64。”

Anyone have any great ideas? 有人有什么好主意吗?

This is the first time I hear that Azure runtime can run in 32-bit mode. 这是我第一次听说Azure运行时可以在32位模式下运行。 The typical solution to this situation is to use some kind of interop and run the 32-bit code in a separate process - like a DCOM server or WCF service so that it doesn't matter whether Azure runtime runs in 32-bit or 64-bit mode. 这种情况的典型解决方案是使用某种互操作并在单独的进程中运行32位代码 - 如DCOM服务器或WCF服务,因此Azure运行时是以32位还是64位运行无关紧要位模式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM