【问题标题】:The host is taking longer than expected to start - Azure function主机的启动时间比预期的要长 - Azure 功能
【发布时间】:2020-08-13 21:51:02
【问题描述】:

当我在 Visual Studio 2015 中运行我的天蓝色函数时,它会出现以下错误。

The host is taking longer than expected to start.

我正在使用预编译的 azure 函数,如 https://blog.kloud.com.au/2017/05/03/precompiled-azure-functions-revisited/ 中所述

非常感谢任何至少看到一些关于它正在等待的输出的方向。

【问题讨论】:

  • 我觉得不支持VS2015
  • 它在同一解决方案中的其他项目中完美运行
  • 您是否同时运行多个功能应用程序?
  • 一次一个函数

标签: c# azure azure-functions


【解决方案1】:

在我的 appsettings.json 中

AzureStorage , AzureWebJobsStorage, AzureWebJobsDashboard

字段中的连接字符串无效。希望这对有同样问题的人有用。请验证您的 host.json 和 azure 函数的默认属性

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "DefaultEndpointsProtocol=https;AccountName=abcstorage;AccountKey=xxx",
    "AzureWebJobsDashboard": "DefaultEndpointsProtocol=https;AccountName=xxx;AccountKey=xxxx",
    "AzureStorage": "DefaultEndpointsProtocol=https;AccountName=xxxx;AccountKey=xxxx",

  }       
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多