Answered by:
multiple web roles in Azure Application

Question
-
Hi
1. In which scenario should we have more than one Web Roles in a single Azure Application?
2. I Have 2 Web Roles in my Azure application . I m able to access the one , set as the start up Project but how to access the other one that is taking the port 8080?
I tried : http://multiplewebroles.cloudapp.net:8080/
The url in my case is http://multiplewebroles.cloudapp.net
If anyone has any idea please ...........
Thursday, September 30, 2010 10:33 AM
Answers
-
Following two URL's are working.
http://multiplewebroles.cloudapp.net/Default1.aspx
http://multiplewebroles.cloudapp.net:8080/Default2.aspx
I guess, you used port 80 for first web role(which is default for HTTP) and port 8080 for second web role in your csdef file.
Please mark it as answer by clicking on "Propose As Answer", if it helps- Proposed as answer by Anton StaykovMicrosoft employee Friday, October 1, 2010 4:22 AM
- Marked as answer by ZenAzure Tuesday, October 5, 2010 11:24 AM
Thursday, September 30, 2010 1:02 PM
All replies
-
I checked your uri's that they are there, but you simply don't have a properly configured default pages for the root folders. Have you tried manually specifying a page in the roles to access?
Thursday, September 30, 2010 11:50 AM -
Yes,
the roles are up and running, but there are neigher "default.aspx" nor "webform1.aspx" in that roles. The fact that you get 403 Forbidden on both addresses means that you have up and running application! Forbidden means that there is no file to correspond the default file (default.aspx) and directory listing is forbidden (default security option).
- Proposed as answer by Anton StaykovMicrosoft employee Friday, October 1, 2010 4:22 AM
Thursday, September 30, 2010 12:07 PM -
Yes
There is a 'default.aspx' page in web role 1 and 2 both.
For distinction i am taking 'Default1.aspx' for Web Role 1 and 'Default2.aspx' for Web role 2.
My problem is that : i m able to acces Default1.aspx from Web Role 1 but unable to access Default2.aspx from Web Role 2 that is on port 8080.
http://multiplewebroles.cloudapp.net is working/Default1.aspx
http://multiplewebroles.cloudapp.net/Default2.aspx is not working
My Question is regarding how to access the pages of 2nd web role in same application on cloud?
Thursday, September 30, 2010 12:42 PM -
Following two URL's are working.
http://multiplewebroles.cloudapp.net/Default1.aspx
http://multiplewebroles.cloudapp.net:8080/Default2.aspx
I guess, you used port 80 for first web role(which is default for HTTP) and port 8080 for second web role in your csdef file.
Please mark it as answer by clicking on "Propose As Answer", if it helps- Proposed as answer by Anton StaykovMicrosoft employee Friday, October 1, 2010 4:22 AM
- Marked as answer by ZenAzure Tuesday, October 5, 2010 11:24 AM
Thursday, September 30, 2010 1:02 PM -
Because both roles are contained within the same service, they MUST reside on seperate ports. Otherwise the Azure load balancer doesn't know how to route the traffic.
- Proposed as answer by Anton StaykovMicrosoft employee Friday, October 1, 2010 4:22 AM
Thursday, September 30, 2010 1:29 PM -
How could I access a page (say firstpage.aspx) of first webrole from another page (say secondpage.aspx) of second web role in same azure application.Monday, November 29, 2010 6:31 AM