本地IIS上的Windows azure Web角色

我正在开发 windows azure web角色.我可以在本地IIS上托管azure Web角色吗?

如果是的话……我需要遵循的步骤是什么?

本地计算机当前正在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属性来根据环境调整其行为.

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...