【问题标题】:Cannot emulate F# worker role无法模拟 F# 辅助角色
【发布时间】:2015-04-21 00:36:26
【问题描述】:

我将 VisualStudio 2013.4 与 Azure .NET SDK 2.5 一起使用:

  • 文件/新项目:Azure 云服务
  • 添加 F# WorkerRole
  • F5

云服务无法在模拟器中启动:

 [fabric] 角色实例:deployment25(22).AzureCloudService2.WorkerRole1.0
    [面料] 角色状态不健康
    [运行时] 角色入口点。调用 OnStart():Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [运行时] 角色入口点。已完成 OnStart():Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [运行时] 角色入口点。调用运行():Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [运行时] 角色入口点。 COMPLETED Run() ==> ROLE RECYCLING INITIATED: Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [运行时] 角色实例回收开始
    [运行时] 角色入口点。调用 OnStop():Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [运行时] 角色入口点。调用 OnStopping()
    [运行时] 角色入口点。已完成 OnStop():Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [运行时] 角色入口点。调用 OnStart():Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [运行时] 角色入口点。已完成 OnStart():Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [运行时] 角色入口点。调用运行():Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [运行时] 角色入口点。 COMPLETED Run() ==> ROLE RECYCLING INITIATED: Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [运行时] 角色实例回收开始
    ...
    [面料] 角色状态不健康
    [面料] 角色状态暂停
    [面料] 角色状态忙碌
    [面料] 角色状态不健康
    [面料] 角色状态暂停
    ...

C# Worker Role 的作用就像是一种魅力。

提前感谢您的帮助

去'

【问题讨论】:

    标签: f# azure-cloud-services


    【解决方案1】:

    您可能需要手动将 FSharp.Core 与工作项目捆绑在一起(确保 CopyLocal 为 true)或使用 FSharp.Core nuget 包。

    我已经在完全部署中看到了这一点,但不一定使用模拟器。

    您使用的是哪个版本的 Azure SDK/模拟器(和 Visual Studio)?

    【讨论】:

    • 感谢您帮助艾萨克。我正在使用 Visual Studio 2013 Update 4 和 Azure .NET SDK 2.5(都是最新版本的 AFAIK)。如果我需要手动捆绑 FSharp.Core,我最好使用依赖于我的 F# 程序集的 C# Worker 角色?
    • 您的 F# 程序集仍需要部署 FSharp.Core.dll。
    • 好吧,即使启用了 CopyLocal,它也不适用于 F# worker 角色。但它适用于包装我的 F# 代码的 C# worker 角色。再次感谢 Isaac 和 Tarmil 的帮助!
    【解决方案2】:

    这是 F# 模板的一个已知问题,希望在下周左右更新。

    【讨论】:

      猜你喜欢
      • 2013-02-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-03
      • 1970-01-01
      • 1970-01-01
      • 2013-08-07
      • 1970-01-01
      相关资源
      最近更新 更多