Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

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

$
0
0

Hi, 

We're working with Service Bus 1.1 for Window Server installed on our LAN. Our machines are Windows Server 2008. We're also using Service Bus Explorer (http://blogs.msdn.com/b/paolos/archive/2013/04/12/service-bus-explorer-2-0-released.aspx) to work with the instances.

NB: This isn't production code, we're just trying to investigate the feasibility of hosting service bus internally on our 2008 Servers. 


When using the Microsoft.ServiceBus.dll binary that is included with Service Bus Explorer (version is 2.0.30327) everything is working OK, I can create subscriptions and receive messages. 

If I use any of the updates from NuGet since this version (current version, 2.1.3.0), an exception is thrown when trying to work with any of the instance items.

"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'.."

Server stack trace: 
Exception rethrown at [0]: 
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
   at Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.EndGet[TEntityDescription](IAsyncResult asyncResult)
   at Microsoft.ServiceBus.NamespaceManager.OnEndTopicExists(IAsyncResult result)
   at Microsoft.ServiceBus.NamespaceManager.EndTopicExists(IAsyncResult result)
   at Microsoft.ServiceBus.NamespaceManager.TopicExists(String path)

The same code works fine against service bus hosted in Azure, it's just when using the Windows Server installation that we see the problem. 

Connection String for Window Server looks like this

Endpoint=sb://dev-08.somehost.lan/DevSpace;StsEndpoint=https://dev-08.somehost.lan:9355/DevSpace;RuntimePort=9354;ManagementPort=9355;SharedAccessKeyName=owner;SharedAccessKey=DYkXL3uSRldOpb5CXUv4EdfdfeKprOnrHRzeZIVwfrdKk=

I'm just creating Namespace and messaging Factory objects using the standard..

this.namespaceManager = NamespaceManager.CreateFromConnectionString(connectionString);
this.messagingFactory = MessagingFactory.CreateFromConnectionString(connectionString);

...which both get created OK, it's just when trying to create Client instances that the Exception is thrown. 


I'm not sure what the Exception is telling me. How is the api-version being transmitted & how can I go about resolving? 

The only Hit I get when searching is this thread, but not sure if it applies in this case

http://social.msdn.microsoft.com/Forums/windowsazure/en-US/55b88e96-301a-44e4-82e7-339b9f53881c/bad-request-apiversion

Any advice appreciated, let me know if I can give any more information

Thanks

Dylan



Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>