简体   繁体   English

值不能为空。 参数名称:在 Azure 中使用 ServiceBus 触发器时的提供者

[英]Value cannot be null. Parameter name: provider when using a ServiceBus Trigger in Azure

When using a Service Bus Trigger in an Azure Function, an extension Bundle is required which is set in the file host.json在 Azure 函数中使用服务总线触发器时,需要在文件host.json设置的扩展包

"extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[1.*, 3.0.0)"
}

Then a message appears :然后出现一条消息:

Value cannot be null.值不能为空。 Parameter name: provider参数名称:提供者

Removing Entity Path from Azure Service Bus Connection String did the trick for me.从 Azure 服务总线连接字符串中删除实体路径对我有用。

It's placed at the end of the Connection String:它位于连接字符串的末尾:

Endpoint=sb://%YourNamespace%.servicebus.windows.net/;SharedAccessKeyName=%SASpolicy_name%;SharedAccessKey=%SASkey%=;EntityPath=queue-name

If you do not have permission to that Subscription OR resource group you will see this error.如果您没有该订阅或资源组的权限,您将看到此错误。 Also make sure that HOST.JSON file is in sync with - Function app Environment configurations.还要确保 HOST.JSON 文件与 - 函数应用环境配置同步。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure function - 函数开始给出错误的值不能是 null。 参数名称:提供者 - Azure function - func start giving error of Value cannot be null. Parameter name: provider 值不能为空。 参数名称:messageId - Value cannot be null. Parameter name: messageId Azure Function 应用程序无法运行显示此错误值不能是 null。 java 中的(参数“提供者”) - Azure Function app Not able to run showing this error Value cannot be null. (Parameter 'provider') in java Azure 函数服务总线队列触发器 - “发生主机错误。System.Private.Uri:值不能为空。参数名称:uriString。” - Azure Function Service Bus Queue Trigger - "A host error has occurred. System.Private.Uri: Value cannot be null. Parameter name: uriString." Azure Functions - 值不能为空。 (参数“连接字符串”) - Azure Functions - Value cannot be null. (Parameter 'connectionString') WCF REST API-使用rest API时出错“值不能为null。参数名称:key: - WCF REST API - Error when consuming rest API "Value cannot be null. Parameter name: key: 获取System.ArgumentNullException的Azure应用服务自定义身份验证:“值不能为空”“参数名称:提供者” - Azure App Service custom authentication getting System.ArgumentNullException: “Value cannot be null” “Parameter name: provider” Azure 886982359588 应用程序:Microsoft.Azure.WebJobs.EventHubs:值不能为 null。(参数“receiverConnectionString”) - Azure Function app : Microsoft.Azure.WebJobs.EventHubs: Value cannot be null. (Parameter 'receiverConnectionString') azure CLI `func new` 给出错误`Value cannot be null. (Parameter 'value')` - azure CLI `func new` gives error `Value cannot be null. (Parameter 'value')` Azure 应用服务 500 错误:值不能是 null。 (参数'containerId') - Azure App Service 500 error: Value cannot be null. (Parameter 'containerId')
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM