如果是的话……我需要遵循的步骤是什么?
本地计算机当前正在Windows Server 2008 R2上运行
解决方法
最简单的只是在本地运行您的网站项目.您可以将其作为虚拟目录附加到IIS上,然后从浏览器运行它或从Visual Studio调试它.这将作为常规IIS Web应用程序运行,但不会作为Web角色运行.
第二种方法是将您的应用程序打包为云服务,并在开发计算机上安装的Windows Azure计算模拟器下运行它.有几个关于如何做到这一点的教程,包括:
> Developing and Deploying Windows Azure Cloud Services Using Visual Studio – 请参阅“在本地调试Windows Azure应用程序”.
> Run a Windows Azure Application in the Compute Emulator
> Windows Azure Basics–Compute Emulator
> Building the web role for the Windows Azure Email Service application – 3 of 5
> How-to deploy application to Windows Azure Compute Emulator with CSRUN
Compute Emulator模拟Windows Azure云服务的几个功能,但您必须了解Differences Between the Compute Emulator and Windows Azure.您的应用程序可以通过阅读RoleEnvironment.IsAvailable 和RoleEnvironment.IsEmulated属性来根据环境调整其行为.