无法使用模拟器在本地运行azure Web角色

w.b*_*ian 9 azure iis-express azure-web-roles

我有一个Web角色,我正在尝试使用模拟器在本地运行.我让它在另一台计算机上工作,但我不能让它在另一台计算机上工作,并且已经远远地重新格式化并从头开始.

当我从Visual Studio启动网站时,Chrome会显示以下消息:

This webpage is not available

The connection to 127.0.0.1 was interrupted.

底部还列出了错误代码:

Error 101 (net::ERR_CONNECTION_RESET): The connection was reset.

构建输出中有一件有趣的事情是这些行:

Starting process 'C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Windows Azure Tools\v1.8\Debugger\WindowsAzureDebugger.exe' with arguments '"C:\Program Files\IIS Express\iisexpress.exe" /trace:error /config:"C:\Users\brian\AppData\Local\dftmp\Resources\159c7254-b7d0-4076-a4fd-820b00feca5f\temp\temp\RoleTemp\applicationHost.config" /site:"deployment18(27).AzureApp.MyApp.Web_IN_0_Web"'...

Process 'C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Windows Azure Tools\v1.8\Debugger\WindowsAzureDebugger.exe' exited with exit code 0.

如果我从命令行运行C:\Program Files\IIS Express\iisexpress.exe" /trace:error /config:"C:\Users\brian\AppData\Local\dftmp\Resources\159c7254-b7d0-4076-a4fd-820b00feca5f\temp\temp\RoleTemp\applicationHost.config" /site:"deployment18(27).AzureApp.MyApp.Web_IN_0_Web",我收到以下消息:

The system cannot find the file specified. Unable to start IIS Express in background.

我不知道它找不到什么文件,但我已经确认我传递的配置文件确实存在.任何人都知道这里发生了什么?

Avk*_*han 1

虽然我无法告诉您问题的实际根本原因是什么,但我可以建议几种解决问题的方法:

  1. 尝试将 IIS Express 更改为 Full IIS,看看是否会改变行为。您可以通过转到 Windows Azure 应用程序项目属性并查看“Web”选项来完成此操作。
  2. 尝试运行应用程序而不进行调试
  3. 在命令提示符下使用 /run 选项的 /launchDebugger 参数启动 CSrun,以验证调试器运行时是否没有任何问题
  4. 尝试使用IE作为默认浏览器
  5. 彻底清理 dftemp 文件夹中的任何残留配置,然后单独启动 Azure 模拟器以验证没有问题