Simple Cloud Service with Service Bus - Website Does Not Open

Hi,

I am trying to follow the following instructions on how to create a simple PaaS Cloud Service with 1 Web Role, 1 Worker Role, and 1 Service Bus Queue:

Part 1: http://i.imgur.com/oMIvuUO.png

Part 2: http://i.imgur.com/KWLhLNE.png

As far as I know, I have correctly followed all the instructions, including:

- Correctly setting up connectionString to configure my connection to my Azure Service Bus Queue.

- Correctly importing the Nu Get package.

- Changing the default QueueName in the template code under WorkerRole.cs to the name of my actual Service Bus Queue.

- Setting up the breakpoint as prescribed: http://i.imgur.com/i5HzDUv.png

Now, the problem is: when I run this Cloud Service, the webpage that should open does not open.

While troubleshooting, I see that if I run an instance of just the Web role, the web page opens up just fine.

Any ideas?

September 8th, 2015 10:28pm

Hi,

 Can you try the following tutorial from MSDN on creating an Azure Worker Role with Service Bus Queue and let us know if that works.
 https://msdn.microsoft.com/en-us/library/azure/jj149831.aspx
 
 How to use Azure Service Bus Queues
 https://azure.microsoft.com/en-in/documentation/articles/service-bus-dotnet-how-to-use-queues/
 
 Let us know if this helps.

Regards,
Nithin Rathnakar

Free Windows Admin Tool Kit Click here and download it now
September 9th, 2015 10:59am

So I followed the instructions you posted on how to make an Azure Worker Role with Service Bus Queue. Those instructions directed me to first create a Web Role using the following instructions:

https://azure.microsoft.com/en-us/documentation/articles/service-bus-dotnet-multi-tier-app-using-service-bus-queues/

I completed everything in the 'Create a Web Role' section up to (and including) step 12. So at this point, I (1) have not connected my Service Bus Queue in Azure to anything yet, and (2) I have not even created a Worker Role yet.

The problem persists. On running my Cloud Service (which only contains this Web Role), a website does not pop up.

Possibly relevant info: I am running Visual Studio 2015.

Here are the Build and Debug outputs:

----------------------------------------------------

Build:

1>------ Build started: Project: MultiTierApp, Configuration: Debug Any CPU ------

1>FrontendWebRole(0,0): warning WAT190: The project 'FrontendWebRole' targets .NET Framework 4.5.2. To make sure that the role starts, this version of the .NET Framework must be installed on the virtual machine for this role. You can use a startup task to install the required version, if it is not already installed as part of the Microsoft Azure guest OS. For more details, see http://go.microsoft.com/fwlink/?LinkId=309796.

========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========

-----------------------------

Debug:

'WaIISHost.exe' (CLR v4.0.30319: RdRuntime): Loaded 'c:\users\carpat\documents\visual studio 2015\Projects\MultiTierApp2\MultiTierApp2\csx\Debug\roles\FrontendWebRole2\approot\bin\Microsoft.AspNet.Identity.EntityFramework.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'WaIISHost.exe' (CLR v4.0.30319: RdRuntime): Loaded 'c:\users\carpat\documents\visual studio 2015\Projects\MultiTierApp2\MultiTierApp2\csx\Debug\roles\FrontendWebRole2\approot\bin\Microsoft.AspNet.Identity.Owin.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'WaIISHost.exe' (CLR v4.0.30319: RdRuntime): Loaded 'c:\users\carpat\documents\visual studio 2015\Projects\MultiTierApp2\MultiTierApp2\csx\Debug\roles\FrontendWebRole2\approot\bin\EntityFramework.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'WaIISHost.exe' (CLR v4.0.30319: RdRuntime): Loaded 'c:\users\carpat\documents\visual studio 2015\Projects\MultiTierApp2\MultiTierApp2\csx\Debug\roles\FrontendWebRole2\approot\bin\System.Web.Mvc.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

Microsoft.WindowsAzure.ServiceRuntime Information: 200 : Role entrypoint . CALLING   OnStart(): FrontendWebRole2.WebRole

Microsoft.WindowsAzure.ServiceRuntime Information: 202 : Role entrypoint . COMPLETED OnStart(): FrontendWebRole2.WebRole

Microsoft.WindowsAzure.ServiceRuntime Information: 203 : Role entrypoint . CALLING   Run(): FrontendWebRole2.WebRole

The thread 0xc70 has exited with code 0 (0x0).

Microsoft.WindowsAzure.ServiceRuntime Verbose: 500 : Role instance status check starting

Microsoft.WindowsAzure.ServiceRuntime Verbose: 502 : Role instance status check succeeded: Ready

Microsoft.WindowsAzure.ServiceRuntime Verbose: 500 : Role instance status check starting

Microsoft.WindowsAzure.ServiceRuntime Verbose: 502 : Role instance status check succeeded: Ready

The thread 0x35c0 has exited with code 0 (0x0).

The thread 0x1fc4 has exited with code 0 (0x0).

The program '[12180] iisexpress.exe: Program Trace' has exited with code 0 (0x0).

The program '[12180] iisexpress.exe' has exited with code 0 (0x0).

The program '[4360] WaIISHost.exe' has exited with code 0 (0x0).

The program '[4360] WaIISHost.exe: Program Trace' has exited with code 0 (0x0).

September 9th, 2015 6:44pm

Bump. To summarize the problem:

I created a web role inside a cloud service in Visual Studio 2015. This web role is very simple (created it following standard instructions for creating a beginner cloud service).

When I run an instance of just the web role, a website pops up. When a run the cloud service that contains the web role, a website does NOT pop up.

Free Windows Admin Tool Kit Click here and download it now
September 12th, 2015 5:18pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics