【问题标题】:Azure Compute Emulator UI not displaying due to errorAzure Compute Emulator UI 由于错误而未显示
【发布时间】:2014-02-14 14:58:56
【问题描述】:

我在尝试查看 Azure Compute Emulator UI 时遇到错误。

步骤:

  1. 启动 Azure 项目以启动模拟器。
  2. 右键单击 Azure 模拟器图标并选择“显示计算模拟器 UI”

这会产生错误:

“此应用程序遇到内部错误,需要关闭”

这之前一直有效,但我没有更改任何内容,所以有谁知道现在可能开始导致错误的原因是什么? Storage Emulator UI 似乎仍显示正常。

我有以下环境:

  • Windows 8.0
  • Visual Studio 2012 专业版
  • Azure SDK 2.2

【问题讨论】:

    标签: azure azure-compute-emulator


    【解决方案1】:

    在系统环境变量 :_CSRUN_STATE_DIRECTORY 中创建系统变量和用户变量,其值类似于“C:\TempAzure”(不带逗号)。不要在末尾留下斜线,例如 'C:\TempAzure\'。

    点击此链接并执行此操作并刷新您的环境变量,因为计算模拟器在刷新之前不会获取它们。

    Is there a command to refresh environment variables from the command prompt in Windows?

    这是对我有用的解决方案。

    提示我是如何得到它的: 1. 以提升的权限(以管理员身份)启动事件查看器和 azure sdk 命令提示符 2. 输入 csrun /devfabric:start 3. 转到事件查看器并按 F5 并从 DFService.exe 中查找错误。应该有 2-3 个新错误,第一个应该来自 DFService。查看描述 - 它应该包含类似的内容:

    Application: DFService.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.ArgumentException
    Stack:
       at System.IO.Path.CheckInvalidPathChars(System.String, Boolean)
       at System.IO.Path.NormalizePath(System.String, Boolean, Int32, Boolean)
       at System.IO.Path.GetFullPath(System.String)
       at Microsoft.ServiceHosting.Tools.DevelopmentFabric.Program.Main(System.String[])
    

    最后一行红灯闪烁:)

    【讨论】:

    • 我已经尝试了这些步骤,但在事件查看器或 C:\TempAzure 中的日志文件中似乎没有出现任何错误。也许 Azure Compute Emulator UI 将错误日志发送到不同的地方?
    • 请注意,如果您在没有管理权限的情况下启动事件查看器,您可能会看到事件日志为空 - 右键单击​​事件查看器图标并以管理员身份运行。每个错误都记录在应用程序下的事件查看器中。如果您的日志很大,请稍等片刻,因为解析和显示它可能需要一些时间。当您打开事件查看器时,Windows Azure 模拟器错误日志位于 Windows 日志 -> 应用程序下。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多