无法模拟F#工作人员角色 [英] Cannot emulate F# worker role

查看:83
本文介绍了无法模拟F#工作人员角色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Visual Studio 2013.4与Azure .NET SDK 2.5结合使用:

I use VisualStudio 2013.4 with Azure .NET SDK 2.5 :

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

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

The cloud service cannot start in emulator :

    [fabric] Role Instance: deployment25(22).AzureCloudService2.WorkerRole1.0
    [fabric] Role state Unhealthy
    [runtime] Role entrypoint . CALLING   OnStart(): Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [runtime] Role entrypoint . COMPLETED OnStart(): Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [runtime] Role entrypoint . CALLING   Run(): Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [runtime] Role entrypoint . COMPLETED Run() ==> ROLE RECYCLING INITIATED: Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [runtime] Role instance recycling is starting
    [runtime] Role entrypoint . CALLING   OnStop(): Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [runtime] Role entrypoint . CALLING   OnStopping()
    [runtime] Role entrypoint . COMPLETED OnStop(): Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [runtime] Role entrypoint . CALLING   OnStart(): Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [runtime] Role entrypoint . COMPLETED OnStart(): Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [runtime] Role entrypoint . CALLING   Run(): Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [runtime] Role entrypoint . COMPLETED Run() ==> ROLE RECYCLING INITIATED: Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint
    [runtime] Role instance recycling is starting
    ...
    [fabric] Role state Unhealthy
    [fabric] Role state Suspended
    [fabric] Role state Busy
    [fabric] Role state Unhealthy
    [fabric] Role state Suspended
    ...

它像C#Worker角色一样具有魅力.

It works like a charm with C# Worker Role.

提前致谢

ded'

推荐答案

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

You might need to manually bundle FSharp.Core with the worker project (ensure CopyLocal is true) or use the FSharp.Core nuget package.

我已经看到了完整的部署,但不一定是模拟器.

I've seen this with full deploys but not necessarily with the emulator.

您正在使用哪个版本的Azure SDK/仿真器(和Visual Studio)?

Which version of the Azure SDK / Emulator are you using (and Visual Studio)?

这篇关于无法模拟F#工作人员角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆