This works in my local. When I publish the same project to azure, it is not working. It says "502 - Web server received an invalid response while acting as a gateway or proxy server." "There is a problem with the page you are looking for,
and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server." error. Interestingly, when I run fiddler inside of the Webrole VM, everything
works fine. I could also see the request url and corresponding redirection url in the fiddler.
Please let me know where is the issue. What fiddler is doing this magic.