Windows Azure Platform Developer Center >
Microsoft Visual Studio 2010 Beta 2 Forums
>
Windows Azure
>
Is there a hidden port number in Azure service?
Is there a hidden port number in Azure service?
- Hello
When my page on Azure is redirected by an OpenID server, I can see a port number, i.e. 20000, added, and error. I have no problem when the same page is redirected by Windows Live ID server. You may want to try at http://han.cloudapp.net . The problematic OpenID service tried is myid.net.
Answers
- Hello, this is a known issue. We're working on a fix. However, can you tell me more details? I don't know OpenID. But if it simply redirected the browser to the desired web page, you should not encounter this problem... Can you make sure there's no problem in your code? For example, if you call Request.Url.ToString(), you will get the wrong port number. LiveID does not allow you to construct the return URL programaticly, and you will have to hard code it in the Live Services portal. I don't know OpenID. But if it allows you to construct the return URL programmaticly, please make sure you're not using Request.Url.ToString(). Instead, please use Request.Headers["Host"] to get the correct domain name and the port number.
Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.- Marked As Answer byPohwan Wednesday, November 04, 2009 8:15 AM
All Replies
- Hello, this is a known issue. We're working on a fix. However, can you tell me more details? I don't know OpenID. But if it simply redirected the browser to the desired web page, you should not encounter this problem... Can you make sure there's no problem in your code? For example, if you call Request.Url.ToString(), you will get the wrong port number. LiveID does not allow you to construct the return URL programaticly, and you will have to hard code it in the Live Services portal. I don't know OpenID. But if it allows you to construct the return URL programmaticly, please make sure you're not using Request.Url.ToString(). Instead, please use Request.Headers["Host"] to get the correct domain name and the port number.
Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.- Marked As Answer byPohwan Wednesday, November 04, 2009 8:15 AM
- Thanks for your quick reply Yi-Lun. I expect the issue fixed soon.
The return-uri is set on OpenID server, not my page hosted in Azure.
Yes, there is customizable return-url property in open-ID control. However it seems to raise a security error of which I don't know the solution. I am not urgent, so I would rather wait for the issue to be fixed. - For the security exception, try to enable full trust, which may solve it. Open the csdef file, and set enableNativeCodeExecution to true:
<
WebRole name="WebRole1" enableNativeCodeExecution="true">
Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights. - Thanks Yi-Lun
No, the security exception comes from OpenID server, not Azure issue. I was not clear.


