I am trying to configure the new SB-Messaging adapter that came with BizTalk 2013 beta to connect to Windows Service Bus (not Windows Azure).
Using PowerShell comdlet "Get-SBClientConfiguration", I was able to retrieve the StsEndpoint addresshttps://sbNodeName:9355/ServiceBusDefaultNamespace.
Then I configure a BizTalk send port with SB-Messaging adapter with the following Tranport properties
- Access Control Service STS Uri (in Authentication tab): https://sbNodeName:9355/ServiceBusDefaultNamespace/
However, when I send the message, I got the following error message. Does anybody know how to fix it?
The adapter failed to transmit message going to send port "sb-sendport__bts2013/requesttopic" with URL "sb://sbNodeName:9354/ServiceBusDefaultNamespace/bts2013/requesttopic". It will be retransmitted after the retry interval specified for this Send Port.
Details:"System.UnauthorizedAccessException: The token provider was unable to provide a security token while accessing 'https://sbNodeName:9355/ServiceBusDefaultNamespace/WRAPv0.9/'.Token provider returned message: '<Error><Code>404</Code><Detail>No service is hosted at the specified address..TrackingId:5a742a02-3a19-4e28-948d-678c93ac6f24_Gbiz01,TimeStamp:2013-01-02 8:46:19 PM</Detail></Error>'.
---> System.IdentityModel.Tokens.SecurityTokenException: The token provider was unable to provide a security token while accessing 'https://sbNodeName:9355/ServiceBusDefaultNamespace/WRAPv0.9/'. Token provider returned message: '<Error><Code>404</Code><Detail>No
service is hosted at the specified address..TrackingId:5a742a02-3a19-4e28-948d-678c93ac6f24_Gbiz01,TimeStamp:2013-01-02 8:46:19 PM</Detail></Error>'. ---> System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.ServiceBus.TokenProviderHelper.GetAccessTokenCore(Uri requestUri, String appliesTo, String requestToken, String simpleAuthAssertionFormat, TimeSpan timeout, String& expiresIn)
--- End of inner exception stack trace ---
at Microsoft.ServiceBus.TokenProviderHelper.ThrowException(Uri requestUri, WebException exception)
at Microsoft.ServiceBus.TokenProviderHelper.GetAccessTokenCore(Uri requestUri, String appliesTo, String requestToken, String simpleAuthAssertionFormat, TimeSpan timeout, String& expiresIn)
at Microsoft.ServiceBus.TokenProviderHelper.GetAccessTokenByAssertion(Uri requestUri, String appliesTo, String requestToken, String simpleAuthAssertionFormat, TimeSpan timeout)
at Microsoft.ServiceBus.SharedSecretTokenProvider.OnBeginGetToken(String appliesTo, String action, TimeSpan timeout, AsyncCallback callback, Object state)
at Microsoft.ServiceBus.TokenProvider.GetTokenAsyncResult..ctor(TokenProvider tokenProvider, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout, AsyncCallback callback, Object state)
at Microsoft.ServiceBus.TokenProvider.BeginGetToken(String appliesTo, String action, Boolean bypassCache, TimeSpan timeout, AsyncCallback callback, Object state)
at Microsoft.ServiceBus.TokenProviderUtility.GetMessagingToken(ITokenProvider tokenProvider, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout)
--- End of inner exception stack trace ---
Server stack trace:
at Microsoft.ServiceBus.TokenProviderUtility.GetMessagingToken(ITokenProvider tokenProvider, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout)
at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageCreator.GetAuthorizationHeader(String action)
at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageCreator.CreateWcfMessage(String action, Object body)
at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.SendCommandAsyncResult.CreateWcfMessage()
at Microsoft.ServiceBus.Messaging.Sbmp.SbmpTransactionalAsyncResult`1.<GetAsyncSteps>d__49.MoveNext()
at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.MoveNextStep()
at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.EnumerateSteps(CurrentThreadType state)
at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.Start()
Exception rethrown at [0]:
at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.EndSendCommand(IAsyncResult result)
at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.OnEndSend(IAsyncResult result)
at Microsoft.ServiceBus.Messaging.Channels.ServiceBusOutputChannel.SendAsyncResult.OnSendComplete(IAsyncResult result)
at Microsoft.ServiceBus.Common.AsyncResult.SyncContinue(IAsyncResult result)
at Microsoft.ServiceBus.Messaging.Channels.ServiceBusOutputChannel.SendAsyncResult..ctor(ServiceBusOutputChannel outputChannel, Message message, TimeSpan timeout, AsyncCallback callback, Object state)
at Microsoft.ServiceBus.Messaging.Channels.ServiceBusOutputChannel.BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, Object state)
at Microsoft.BizTalk.Adapter.SBMessaging.SBMessagingOutputChannel.System.ServiceModel.Channels.IOutputChannel.BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, Object state)
at System.ServiceModel.Dispatcher.OutputChannelBinder.BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, Object state)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartSend(Boolean completedSynchronously)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.Begin()
at System.ServiceModel.Channels.ServiceChannel.BeginCall(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, TimeSpan timeout, AsyncCallback callback, Object asyncState)
at System.ServiceModel.Channels.ServiceChannel.BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, Object state)
at System.ServiceModel.Channels.ServiceChannel.BeginSend(Message message, AsyncCallback callback, Object state)
Exception rethrown at [1]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System.ServiceModel.Channels.IOutputChannel.BeginSend(Message message, AsyncCallback callback, Object state)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.SendOutputMessage(IBaseMessage bizTalkMessage, IOutputChannel channel)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.SendMessage(IBaseMessage bizTalkMessage)".