Wednesday, August 4, 2010

“Page not found” or 502 when accessing an Azure Web Role

In the last week me and one of my collogue have been trying to nail down an issue when we try to access a simple Azure application from our Work network. I am posting it here as I think someone can benefit from this,

I literally just clicked through the Create New Project –> Next –> Next and created a “Simple” Cloud application with just a single Web Role and a Hello World page. Removed the diagnostic connection string that Azure adds by default just to make it even simpler. Basically the page just said “Hello World!” and nothing else was going on. Deployed the app on Azure and to my surprise it just didn’t work. I kept getting the default “Page not found”! Time to fire up fiddler and see what’s going on and here’s what Fiddler gives me,

[Fiddler] Connection to razorfishmvc1.cloudapp.net failed.
Exception Text: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 65.52.221.203:80

imageimage
Basically nothing much. Same deal when you use a tracert command.
image

And to add to that the app was just working fine from my iPhone. So we have an app that worked from an external network but didn’t from our corporate network with very little debugging info that one can point at. Luckily there was one service that we were able to hit from our corpnet and I logged into that and found that the only difference between that service and my “hello world” app was the affinity group.

Affinity group Details for the Service that DID NOT work:

Affinity group : mycustomaffinitygroup
Geographic Location: North/Central US

Affinity group Details for the Service that DID work:

Affinity group : Unaffiniated
Geographic Location: Anywhere in US

I changed the “hello world” to Unaffiniated and “anywhere in US” and wallah It started working. Now this SHOULD NOT happen. Either the North/Central data center was just slow to respond to requests from our internet gateway or there is something wonky with the custom affinity groups but either ways it’s BADD! Or a third reason could be the timeout value for our gateway before it closes the connection is set to a low value.. but not likely as I have never seen any issues with any other internet sites as such.

I have a thread going with Steve Marx from Microsoft here. Let’s hope he can track it down if at all it’s an issue with the Azure service. I hope not!

1 comment:

  1. The payback proportion in most on line 온라인카지노 casino machines is much greater than the minimal -- usually in the 90- to 97-percent range. Casinos don't want their machines to be so much tighter than their opponents' machines or the players will take their business elsewhere. To determine the place of the first reel, the computer divides the first random quantity by a set value. During the Twenties the machines have been in style all through a lot of the United States, especially in resort areas, and they continued to be in style into the Great Depression years of the ’30s. But data that the distribution of slot machines was usually controlled by organized crime led to rising laws restricting their sale and transportation as well as|in addition to} their use besides in personal social golf equipment. Prohibition exterior Nevada, which had relegalized gambling in 1931, was virtually whole by 1951, though unlawful operation, especially in personal golf equipment, was broadly ignored.

    ReplyDelete