Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Service Bus for Windows Server - The API Version is not Supported

I'm considering developing an app to run on-premise and off-premise and was hoping to use the Service Bus to communicate between services. I have 2 problems:

  1. My corporate network is blocking access to my Azure endpoint so I can't use my genuine Azure Service Bus.
  2. I can't use WindowsAzure.ServiceBus version 2.2.7.0 against my Windows Server Service bus.

I get the following whenever I try using the Windows Server Service Bus (e.g. NamespaceManager.QueueExists):

System.ArgumentException : The remote server returned an error: (400) Bad Request. The api-version in the query string is not supported. Either remove it from the Uri or use one of 2012-03,2012-08,2013-04,2013-07...

I suspect I need to add api-version to NamespaceManager.CreateFromConnectionString but I just can't seem to find how :(

My current connection string is:

Endpoint=sb://[my machine]/ServiceBusDefaultNamespace;StsEndpoint=https://[my machine]:9355/ServiceBusDefaultNamespace;RuntimePort=9354;ManagementPort=9355

No matter where I stuff api-version=2013-07 it doesn't like it.

MTIA
Andy

like image 972
Maxitone Avatar asked Mar 17 '14 14:03

Maxitone


1 Answers

Ended up here because I was getting this issue using Service Bus Explorer with Service Bus 1.1 installed locally on my machine.

The issue was due to using the latest version of Service Bus Explorer (currently 2.4.1.1).

The issue was fixed by using Service Bus Explorer 2.1 which is also included in the Service Bus Explorer download.

Using the 2.1.3.0 version the issue went away.

Get it here. http://code.msdn.microsoft.com/windowsazure/Service-Bus-Explorer-f2abca5a

Edited: Above link is broken.Use this instead. https://code.msdn.microsoft.com/windowsapps/Service-Bus-Explorer-f2abca5a

like image 70
CountZero Avatar answered Sep 22 '22 00:09

CountZero