2016-08-24 10 views
0

Windows Server 1.1のService Busで作業するためにMicrosoft.ServiceBus.dll(バージョン2.1)を使用しています。QueueClient send throw "net.tcp://xxx.servicebus.windows.net:9354 /に接続できませんでした。"エラー

また、このライブラリがAzureサービスバスと通信できるようにします。 1つのドメイン内のコンピュータでのみ動作します(ポートの制限なし)。しかし、より制限されたドメイン(いくつかのポートがブロックされている)にあるコンピュータでは、次のエラーが発生します。私がMicrosoft.ServiceBus.dll 3.0を切り替えると、同じコードが制限されたドメインで機能します。 Microsoft.ServiceBus.dll 3.0が動作し、Microsoft.ServiceBus.dll 2.1が同じラボ(ドメイン)で動作しないのはなぜですか?

Could not connect to net.tcp://xxx.servicebus.windows.net:9354/. The connection attempt lasted for a time span of 00:00:20.9992011. TCP error code 10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 40.86.102.100:9354.
at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.ServiceBus.Messaging.IteratorAsyncResult 1.RunSynchronously() at Microsoft.ServiceBus.Messaging.MessageSender.OnSend(TrackingContext trackingContext, IEnumerable 1 messages, TimeSpan timeout) at Microsoft.ServiceBus.Messaging.MessageSender.Send(TrackingContext trackingContext, IEnumerable`1 messages, TimeSpan timeout) at Microsoft.ServiceBus.Messaging.MessageSender.Send(BrokeredMessage message) at Microsoft.ServiceBus.Messaging.QueueClient.Send(BrokeredMessage message)

は、私は、Windows Server 1.1のためのSBに話をMicrosoft.ServiceBus.dll 3.0を使用する場合、私は次のエラーを得た: 「リモートサーバーがエラー返さ:(400)不正な要求をAPI-バージョンUriから削除するか、 '2012-03,2012-08,2013-04,2013-07'のいずれかを使用してください。

このリンクService Bus 1.1 creating Queue with WindowsAzure.ServiceBus dllに基づいて、Microsoft.ServiceBus.dll 2.1を使用する必要があります。 Azure Service BusとWindows Server 1.1のSBの両方と通信できるMicrosoft.ServiceBus.dllバージョンを使用したいと思います。唯一の選択肢は2.1だと思われますが、その制限されたドメインでは の問題が発生します。

答えて

0

Why does Microsoft.ServiceBus.dll 3.0 work and Microsoft.ServiceBus.dll 3.1

あなたの説明によると、間違ったバージョンのMicrosoft.serverBus.dll 3.1を書いているようです。バージョン2.1として理解できますか?一般•

::私たちは情報の下に見つけることができるのMicrosoftのAzure Service Busのリリースノートから

、純4.5に対してコンパイル - .NET 4.0のプロジェクトは、同様の.Net 4.5に対して再コンパイルする必要があります。 •一般:すべてのMessagingおよびEventHubクラスの古いBegin/Endスタイル非同期APIの削除。代わりにTask base async APIを使用してください。

3.0以上のバージョンは.Net4.5とコンパイルされます。したがって、アプリケーションで.Net 4.5を使用している場合。 3.0より高いバージョンのMicrosoft.ServiceBus.dllを選択することをお勧めします。

+0

私は、なぜMicrosoft.ServiceBus.dll 3.0が動作し、Microsoft.ServiceBus.dll 2.1が動作するのですか?入力ミスを申し訳ありません。 Microsoft.ServiceBus.dll 3.0以降のバージョンを使用する際の問題点について、元の質問に2つの段落を追加しました。 – DLin1

関連する問題