I Have two different projects:
My goal is simple:
Use the WP8 Application running from a real device, to access (using HTTPClient) the WebAPI controller while it is deployed to the Azure Emulator.
What DO work is:
IIS Express
(Without Azure), and the IIS Express
settings are changed following this article.As far as I understand, the problem is that the Azure Emulator is configured to listen on IP address 127.0.0.1, which is not accessible from outside the localhost domain.
I found this post that offers a solution to this exact problem, but trying to follow it results in an Unknown Exception while trying to deploy to Azure Emulator.
Is it really impossible to locally test WP8 application that communicates with Azure Cloud Service?
I figured out how it is possible to have a Phone Emulator or an attached physical Windows Phone device communicating with the Azure Emulator.
For other developers struggling with the same requirement, here are the steps required for it to work:
"C:\Program Files\Microsoft SDKs\Windows Azure\Emulator\devfabric\DevFC.exe.config"
for editing."VipPoolStartIPAddress"
and "VipPoolEndIPAddress"
to your hosting machine IP (e.g. 192.168.1.100)"C:\Program Files\Microsoft SDKs\Windows Azure\Emulator\devstore\DSServiceLDB.exe.config"
and "C:\Program Files\Microsoft SDKs\Windows Azure\Emulator\devstore\DSServiceSQL.exe.config"
for editing.services
section in both of the files to use hosting IP.Windows Azure storage emulator
setting):
Role
(under "Roles" folder in the solution explorer) to enter it's Properties
page. Click on Settings
tab. Make sure you edit the Local
settings (Select it on Service Configuration
selection box).accounts
section in DSServiceSQL.exe.config
Enjoy!