Windows Server的Service Bus - 不支持API版本

Max*_*one 8 c# servicebus azure

我正在考虑开发一个应用程序来运行内部部署和外部部署,并希望使用服务总线在服务之间进行通信.我有两个问题:

  1. 我的公司网络阻止访问我的Azure端点,因此我无法使用我的正版Azure Service Bus.
  2. 我无法使用WindowsAzure.ServiceBus版本2.2.7.0对我的Windows Server Service总线.

每当我尝试使用Windows Server Service Bus(例如NamespaceManager.QueueExists)时,我都会得到以下信息:

System.ArgumentException:远程服务器返回错误:(400)错误请求.不支持查询字符串中的api-version.要么从Uri中删除它,要么使用2012-03,2012-08,2013-04,2013-07中的一个...

我怀疑我需要将api-version添加到NamespaceManager.CreateFromConnectionString,但我似乎无法找到如何:(

我当前的连接字符串是:

Endpoint = sb:// [我的机器]/ServiceBusDefaultNamespace; StsEndpoint = https:// [我的机器]:9355/ServiceBusDefaultNamespace; RuntimePort = 9354; ManagementPort = 9355

无论我在哪里填写api-version = 2013-07它都不喜欢它.

MTIA
安迪

Cou*_*ero 7

结束这里是因为我使用Service Bus Explorer在我的机器上本地安装了Service Bus 1.1来解决这个问题.

问题是由于使用了最新版本的Service Bus Explorer(目前为2.4.1.1).

使用Service Bus Explorer 2.1修复了该问题,Service Bus Explorer也包含在Service Bus Explorer下载中.

使用2.1.3.0版本,问题就消失了.

来吧.http://code.msdn.microsoft.com/windowsazure/Service-Bus-Explorer-f2abca5a

编辑:以上链接已损坏.请使用此选项. https://code.msdn.microsoft.com/windowsapps/Service-Bus-Explorer-f2abca5a


小智 5

您可能在下面的链接中遇到了其他人喜欢的其他问题,

http://social.msdn.microsoft.com/Forums/windowsazure/en-US/c23a7c1f-742d-4d7f-ad4f-3bf149964762/service-bus-for-windows-server-the-api-version-is-not-支持?论坛= servbus

但是,如果您注意到除了以下帖子之外几乎没有什么帮助

http://social.msdn.microsoft.com/Forums/windowsazure/en-US/3aa6c2b8-65ac-4f8b-a36c-674698bb2f41/setting-development-environment-for-service-bus-11-on-windows-7-和VS-2013?论坛= servbus

这些行之间的快速答案是不使用Windows Azure SDK 2.2附带的Microsoft.ServiceBus v2.2.0.0.相反,抓住nuget包"Service Server 1.1 for Windows Server",一切都应该正常使用SB 1.1 for Windows Server.