Geeks With Blogs

News View Michael Stephenson's profile on BizTalk Blog Doc View Michael Stephenson's profile on LinkedIn
Michael Stephenson keeping your feet on premise while your heads in the cloud
I fell into this trap earlier in the week with a mistake I made when configuring a service to send and listen on the azure service bus and I thought it would be worth a little note for future reference as I didnt find anything online about it.  After configuring everything when I ran my code sample I was getting the below error.


 

WebHost failed to process a request.

Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/28316044

Exception: System.ServiceModel.ServiceActivationException: The service '/-------/BrokeredMessageService.svc' cannot be activated due to an exception during compilation.  The exception message is: Generic: There was an authorization failure. Make sure you have specified the correct SharedSecret, SimpleWebToken or Saml transport client credentials.. ---> Microsoft.ServiceBus.AuthorizationFailedException: Generic: There was an authorization failure. Make sure you have specified the correct SharedSecret, SimpleWebToken or Saml transport client credentials.

   at Microsoft.ServiceBus.RelayedOnewayTcpClient.ConnectRequestReplyContext.Send(Message message, TimeSpan timeout, IDuplexChannel& channel)

   at Microsoft.ServiceBus.RelayedOnewayTcpListener.RelayedOnewayTcpListenerClient.Connect(TimeSpan timeout)

   at Microsoft.ServiceBus.RelayedOnewayTcpClient.EnsureConnected(TimeSpan timeout)

   at Microsoft.ServiceBus.Channels.CommunicationObject.Open(TimeSpan timeout)

   at Microsoft.ServiceBus.Channels.RefcountedCommunicationObject.Open(TimeSpan timeout)

   at Microsoft.ServiceBus.RelayedOnewayChannelListener.OnOpen(TimeSpan timeout)

   at Microsoft.ServiceBus.Channels.CommunicationObject.Open(TimeSpan timeout)

   at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)

   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

   at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)

   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

   at Microsoft.ServiceBus.SocketConnectionTransportManager.OnOpen(TimeSpan timeout)

   at Microsoft.ServiceBus.Channels.TransportManager.Open(TimeSpan timeout, TransportChannelListener channelListener)

   at Microsoft.ServiceBus.Channels.TransportManagerContainer.Open(TimeSpan timeout, SelectTransportManagersCallback selectTransportManagerCallback)

   at Microsoft.ServiceBus.SocketConnectionChannelListener`2.OnOpen(TimeSpan timeout)

   at Microsoft.ServiceBus.Channels.CommunicationObject.Open(TimeSpan timeout)

   at Microsoft.ServiceBus.Channels.CommunicationObject.Open(TimeSpan timeout)

   at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)

   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

   at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)

   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)

   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)

   --- End of inner exception stack trace ---

   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)

   at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)

Process Name: w3wp

Process ID: 8056



As recommended by the error message I checked everything about the application configuration and also the keys and eventually I found the problem.


When I set the permissions in the ACS rule group I had copied and pasted the claim name for net.windows.servicebus.action from the Azure portal and hadnt spotted the <space> character on the end of it like you sometimes pick up when copying text in the browser.  This meant that the listen and send permissions were not setup correctly which is why (as you would expect) my two applications could not connect to the service bus.


So lesson learnt here, if you do copy and paste into the ACS rules just be careful you dont leave a space on the end of anything otherwise it will be difficult to spot that its configured incorrectly


Posted on Friday, October 26, 2012 9:23 AM Azure Service Bus | Back to top


Comments on this post: Azure Service Bus - Authorization failure

# re: shareitdownloadapp
Requesting Gravatar...
good more quickly data files surfing this will make the iphone app SHAREit PC Windows The request finds units with the same request when in spectrum, SHAREit Download App nice.
Left by vina on May 11, 2016 6:08 PM

# re: Azure Service Bus - Authorization failure
Requesting Gravatar...
good and much less electricity intake. iTube App is definitely iTube Windows PC it will end up being extremely easy to download and pay attention iTube Windows Download nice.
Left by puja on Jul 26, 2016 5:55 PM

# re: Azure Service Bus - Authorization failure
Requesting Gravatar...
good Large capacity - serve filtered water throughout your house for a decade approximately. water softener credited to unforeseen damage, the process is usually nice.
Left by mansi on Sep 19, 2016 7:16 PM

# re: Azure Service Bus - Authorization failure
Requesting Gravatar...
Really great post thanks for sharing this information.

snapchat download
Left by snapchat for pc on Sep 22, 2016 5:53 AM

# re: Azure Service Bus - Authorization failure
Requesting Gravatar...
Great Post thanks Admin
Left by xender download on Sep 22, 2016 6:16 AM

# re: Azure Service Bus - Authorization failure
Requesting Gravatar...
best app to transfer files
http://www.xenderforpcfreedownload.com
Left by xender download on Sep 22, 2016 6:18 AM

# Download 9Apps
Requesting Gravatar...
awesome install several games, apps videos as well as far more. Download 9Apps as well as in Application variation.If you go to Google Play Shop great.
Left by Galloway on Jan 30, 2017 7:14 PM

# re: Azure Service Bus - Authorization failure
Requesting Gravatar...
Great Post thanks Admin for sharing this
Jio TV for PC and Jio cinema for PC
Left by Jio on Feb 09, 2017 8:35 PM

# re: Azure Service Bus - Authorization failure
Requesting Gravatar...
awesome install several games, apps videos as well as far more. Best Earphones Under 100 as well as in Application variation.If you go to Google Play Shop great.
Left by Larry Jones on Feb 14, 2017 4:46 AM

# re: Azure Service Bus - Authorization failure
Requesting Gravatar...
Great Once you have actually verified your mobile device snapchat sign in stars to significant world brands. You could interact Fine.
Left by emma on Feb 15, 2017 4:42 PM

# re: Azure Service Bus - Authorization failure
Requesting Gravatar...
As recommended by the error March calendar 2017 message I checked everything about the application configuration and also the keys and eventually I found the problem. When I set April calendar 2017 the permissions in the ACS rule group I had copied and pasted the claim name for net.windows.servicebus.action from the Azure portal and hadnt spotted the character on the end of it like you sometimes pick up when copying text in the browser. This meant that the listen and send permissions were not setup correctly which is why (as you would expect) my two applications could not connect to the service bus.
Left by ranjit on Feb 27, 2017 1:07 AM

# re: Azure Service Bus - Authorization failure
Requesting Gravatar...
I had copied May calendar 2017 and pasted the claim name for net.windows.servicebus.action from the Azure portal and hadnt spotted the character on the end of it like you sometimes pick up when September calendar 2017 copying text in the browser. This meant that the listen and send permissions were not setup correctly
Left by ranjit on Feb 27, 2017 1:09 AM

# re: Azure Service Bus - Authorization failure
Requesting Gravatar...
good app video clip maker apps.In this application you can Musically Download to browse various other internet sites, straightforward nice.
Left by oliver on Mar 11, 2017 12:19 AM

# re: Azure Service Bus - Authorization failure
Requesting Gravatar...
make one of the most from the Android smart device itutuapp.com No matter just what trouble you could be dealing with in the smart device,
Left by saroj on Apr 11, 2017 10:28 PM

# re: Azure Service Bus - Authorization failure
Requesting Gravatar...
no Reload gravity transparent Shrub Could see Mini Militia Mod you will certainly not going to stop it.The idea is to eliminate.
Left by castol on Apr 13, 2017 11:47 PM

# re: Azure Service Bus - Authorization failure
Requesting Gravatar...
I love it. Picsart hope that more and more Blogger will use this feature in the future, because it just makes the internet better I think!
Left by Larry Jones on May 08, 2017 12:55 AM

# re: Azure Service Bus - Authorization failure
Requesting Gravatar...
I love it. HSC Result hope that more and more Blogger will use this feature in the future, because it just makes the internet better I think!
Left by Larry Jones on May 08, 2017 12:57 AM

# re: Azure Service Bus - Authorization failure
Requesting Gravatar...
hope that more and more Blogger will use this feature in the future, because it just makes the internet better I think!
fathers day quotes
Left by sonu on May 12, 2017 3:45 PM

# re: Azure Service Bus - Authorization failure
Requesting Gravatar...
ope that more and more Blogger will use this feature in the future, fathers day quotes because it just makes the internet better I think!
fathers day quotes
Left by sonu on May 12, 2017 3:46 PM

# re: Azure Service Bus - Authorization failure
Requesting Gravatar...
A calendar is a very useful tool used by people around the world. Use monthly calendars such as Printable June 2017 calendar & July 2017 printable calendar to manage your upcoming months in a better way. Click Here to get more calendars or else visit here.
Left by Sam on May 15, 2017 7:40 PM

# kodidownloadappz
Requesting Gravatar...
Much of the software application decoding done on the Complete HD Kodi App you will certainly have to rely on the designer certificate for Kodi.
Left by Smith on May 22, 2017 4:59 PM

# re: Azure Service Bus - Authorization failure
Requesting Gravatar...
Mehndi henna outlines have dependably been utilized as a part of wedding in India, and they are really specified in people stories of the past too. The use of wedding mehndi has been maintained until today, and in nations, for example, Yemen, the craft of applying mehndi for a wedding would take near four to five days just to fulfill customary necessities amid the wedding celebration. The same could be said in Pakistan, where the ladies for the most part adorn themselves with perfect mehndi to make themselves look additional brilliant on their enormous day. All Latest Mehndi. In today's current world, there are various mehndi henna configuration books around that show the various mehndi stages to be attempted to finish the specialty of mehndi, a reasonable sign of how circumstances are different from the seasons of the past when the craft of mehndi was gone on through verbal. By the by, the authentic specialty of mehndi keep on captivating millions around the globe, and would keep on doing so for quite a long time to come!
Bridal Mehndi Designs

Left by All Mehndi Designs on Jun 06, 2017 9:24 PM

Your comment:
 (will show your gravatar)


Copyright © Michael Stephenson | Powered by: GeeksWithBlogs.net