我正在开发我的第一个Azure实现,我已经设置了我的Azure帐户,并且我使用NuGet将正确的DLL和配置安装到我的应用程序中。当我把我的WCF客户端指向服务总线队列和运行的方法我得到这个异常:连接到Azure ServiceBus队列
Microsoft.ServiceBus.ServerErrorException
at Microsoft.ServiceBus.RelayedSocketInitiator.Connect(Uri uri, TimeSpan timeout)
at Microsoft.ServiceBus.ConnectivityModeConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
at Microsoft.ServiceBus.Channels.BufferedConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
at Microsoft.ServiceBus.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
at Microsoft.ServiceBus.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at Microsoft.ServiceBus.Channels.LayeredChannel`1.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
我的端点配置为:
<endpoint address="sb://MyService.servicebus.windows.net/MyServicequeue"
binding="netTcpRelayBinding" contract="PaperlessImportServiceWCF.PaperlessImportServiceSoap"
name="MyServiceServiceSoap" behaviorConfiguration="sbTokenProvider"/>
我的endpoint
行为是:
错误信息是非常通用的,我不知道什么是我应该看看
myservice不是我用myNamespace替换了我的真实姓名空间。是的,我想做b)。谢谢,我会看看我能做些什么。 – greektreat 2013-02-09 03:55:22