Microsoft.WindowsAzure.ServiceRuntime错误:102:角色环境。未能初始化

时间:2011-12-29 21:09:56

标签: https azure

调试azure项目时出现以下错误: Microsoft.WindowsAzure.ServiceRuntime错误:102:角色环境。未能初始化

使用IIS7 Express。

输出窗口结果:

  

'iisexpress.exe'(Managed(v4.0.30319)):已加载'C:\ windows \ assembly \ GAC_32 \ msshrtmi \ 1.6.0.0__31bf3856ad364e35 \ msshrtmi.dll'   Microsoft.WindowsAzure.ServiceRuntime错误:102:角色环境。未能初始化

以下是此代码失败:

HttpContext.Current.Response.Redirect(outURL, true);

这是从http到https。

1 个答案:

答案 0 :(得分:5)

我想出来了。这很简单,但Azure项目必须先启动才能运行计算模拟器。右键单击Azure项目顶级节点,然后单击调试/新实例。

相关问题