You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

为何我的RootManageSharedAccessKey连接字符串无效?

Azure Service Bus连接字符串无效问题

执行以下代码时,收到连接字符串无效的错误:

serviceBusClient = new ServiceBusClient(connectionString)

错误信息

System.NotImplementedException: 'The method or operation is not implemented.'
System.ArgumentException: 'The connection string used for an Service Bus client must specify the Service Bus namespace host and either a Shared Access Key (both the name and value) OR a Shared Access Signature to be valid. Parameter name: connectionString'

使用的连接字符串

"Endpoint=sb://myNameSpace.servicebus.windows.net/;TransportType=AmqpWebSockets;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=*******************************************="

也曾尝试移除连接字符串中的TransportType属性:

"Endpoint=sb://myNameSpace.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=*******************************************="

该连接字符串来自我的Service Bus资源的Shared Access Policy。

环境信息

  • Xamarin.Forms (Android)
  • Azure.Messaging.ServiceBus

NuGet包版本

  • Azure.Messaging.ServiceBus (7.11.1)
  • Xamarin.Forms (5.0.0.2545)

内容的提问来源于stack exchange,提问作者Scott Nimrod

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.05 23:55:26