• <small id='Zv5x2'></small><noframes id='Zv5x2'>

    <i id='Zv5x2'><tr id='Zv5x2'><dt id='Zv5x2'><q id='Zv5x2'><span id='Zv5x2'><b id='Zv5x2'><form id='Zv5x2'><ins id='Zv5x2'></ins><ul id='Zv5x2'></ul><sub id='Zv5x2'></sub></form><legend id='Zv5x2'></legend><bdo id='Zv5x2'><pre id='Zv5x2'><center id='Zv5x2'></center></pre></bdo></b><th id='Zv5x2'></th></span></q></dt></tr></i><div id='Zv5x2'><tfoot id='Zv5x2'></tfoot><dl id='Zv5x2'><fieldset id='Zv5x2'></fieldset></dl></div>

        • <bdo id='Zv5x2'></bdo><ul id='Zv5x2'></ul>
        <tfoot id='Zv5x2'></tfoot>

        <legend id='Zv5x2'><style id='Zv5x2'><dir id='Zv5x2'><q id='Zv5x2'></q></dir></style></legend>

        Azure Functions - 值不能为空.(参数“连接字符串")

        时间:2023-08-02

          <small id='UaJBm'></small><noframes id='UaJBm'>

            • <bdo id='UaJBm'></bdo><ul id='UaJBm'></ul>
            • <tfoot id='UaJBm'></tfoot>

              1. <i id='UaJBm'><tr id='UaJBm'><dt id='UaJBm'><q id='UaJBm'><span id='UaJBm'><b id='UaJBm'><form id='UaJBm'><ins id='UaJBm'></ins><ul id='UaJBm'></ul><sub id='UaJBm'></sub></form><legend id='UaJBm'></legend><bdo id='UaJBm'><pre id='UaJBm'><center id='UaJBm'></center></pre></bdo></b><th id='UaJBm'></th></span></q></dt></tr></i><div id='UaJBm'><tfoot id='UaJBm'></tfoot><dl id='UaJBm'><fieldset id='UaJBm'></fieldset></dl></div>
                  <legend id='UaJBm'><style id='UaJBm'><dir id='UaJBm'><q id='UaJBm'></q></dir></style></legend>
                    <tbody id='UaJBm'></tbody>
                  本文介绍了Azure Functions - 值不能为空.(参数“连接字符串")的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我试图设置简单的 Azure 函数来读取 XML 流并将其同步回数据库.我的计划是使用时间触发器每天执行一次函数.

                  I was trying to setup simple Azure Function to read a XML stream and sync it back to the database. My plan was to use a Time Trigger to execute the function once per day.

                  但是,事情看起来不太好.即使我不使用数据库,我也会收到以下错误:

                  Howerver, things are not looking great. I'm getting the following error, even if I don't use a database:

                  [Error] Executed 'Functions.<func-name>' (Failed, Id=<func-id>, Duration=1ms)Value cannot be null. (Parameter 'connectionString')
                  

                  我目前正在尝试执行以下功能:

                  I'm currently trying to execute the following function:

                  module.exports = async function(context, req) {
                      context.res = {
                          body: "Success!"
                      };
                  };
                  

                  同样的结果.我无法运行它.

                  Same result. I can't run it.

                  我在配置中添加了一个连接字符串 ->连接字符串(根据消息,我以为我错过了).

                  I've added a Connection String to the Configuration -> Connection Strings (I thought that I've missed that, based on the message).

                  我的 functions.json 文件如下所示:

                  My functions.json file looks like:

                  {
                    "bindings": [
                      {
                        "name": "myTimer",
                        "type": "timerTrigger",
                        "direction": "in",
                        "schedule": "0 0 * * * *"
                      },
                      {
                        "type": "http",
                        "direction": "out",
                        "name": "res"
                      }
                    ]
                  }
                  

                  我也尝试过运行 C# 函数 - 结果相同.

                  I've also tried running a C# function - same result.

                  那么,我错过了什么?

                  推荐答案

                  从 Microsoft 到最好的日志.

                  缺少 AzureWebJobsStorage 应用设置.

                  解决方案:

                  1. 创建存储帐户(或使用现有帐户)
                  2. 转到 Function App 的配置
                  3. 将带有连接字符串的 AzureWebJobsStorage 添加到您的存储帐户(可在存储帐户概述 -> 访问密钥中找到)

                  这篇关于Azure Functions - 值不能为空.(参数“连接字符串")的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Azure Functions 重定向标头 下一篇:Azure Functions:如何在 WebStorm 中调试?

                  相关文章

                  <legend id='MmJbx'><style id='MmJbx'><dir id='MmJbx'><q id='MmJbx'></q></dir></style></legend>
                  <tfoot id='MmJbx'></tfoot>
                • <small id='MmJbx'></small><noframes id='MmJbx'>

                        <bdo id='MmJbx'></bdo><ul id='MmJbx'></ul>
                      <i id='MmJbx'><tr id='MmJbx'><dt id='MmJbx'><q id='MmJbx'><span id='MmJbx'><b id='MmJbx'><form id='MmJbx'><ins id='MmJbx'></ins><ul id='MmJbx'></ul><sub id='MmJbx'></sub></form><legend id='MmJbx'></legend><bdo id='MmJbx'><pre id='MmJbx'><center id='MmJbx'></center></pre></bdo></b><th id='MmJbx'></th></span></q></dt></tr></i><div id='MmJbx'><tfoot id='MmJbx'></tfoot><dl id='MmJbx'><fieldset id='MmJbx'></fieldset></dl></div>