I have worker roles that send multicast messages using the azure service bus. The two users of these messages are websites hosted on Azure. I know that there are problems with hosting the WCF service bus endpoints in IIS even when working indoors. I followed Microsoft advice and programmed the service host .
One of the sites has been using this technique for a long time. It uses a hosted web core (it was developed before full IIS was an option for Azure), and it initializes the service host as part of it RoleEntryPoint.OnRun(). I am trying to move this site to use full IIS. Since in full IIS RoleEntryPoint works in a different process with the site itself, and the service node needs access to some static variables on the site, I moved the service host initialization to Global.asax Application_OnStart. This code works great when working as a website in IIS locally, and it works great when working in a computational emulator, but as soon as I deploy it to the cloud, my WCF node never receives any messages. I could not catch any errors that occur.
Have any of them successfully deployed something like this?
source
share