I have a typical Silverlight 5 application created on Azure with a web project that hosts the site hosting the Silverlight XAP file and another web project that hosts a collection of WCF Data Services.
Together the two sites run in a single Azure role but on different ports. Port 80 hosts the WCF Data Services and Port 8081 hosts the actual Silverlight application.
I am having a cross-domain issue with this configuration. In watching through Fiddler, it appears that when my Silverlight application calls the Service, it is, as expected, looking for the clientaccesspolicy.xml and crossdomain.xml files from the WCF Data Services site to be allowed cross-domain access. However, the Silverlight application is sending the request to http://127.0.0.1 and not the correct URI for the domain in which the WCF Data Services are hosted.
Can anybody explain to me why the application is trying to go to 127.0.0.1 and not the correct URI?
Thanks