Problem with accessing asmx service in silverlight

Posted by Maheshp under Silverlight on 9/20/2011 | Points: 10 | Views : 1799 | Status : [Member] | Replies : 1
Dear All,
I needed to use a web service in order to get some data for my Silverlight application and I found that using an ASMX web service with Silverlight could be quite easy.I have added reference to my silverlight application,when I compile the my code I am getting a warning Could not locate cross-domain policy at '': Web services might not be accessible at runtime by your Silverlight application. For more details please contact the web server administrator or press F1 after selecting this .
Can any one please suggest do I need to change some setting so that my web application can run fine.



Posted by: Vuyiswamb on: 9/20/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

The webservice and Silverlight are normally running in a Different domain , so this is a security feature so to make these two domain trust each other , you need policy files , look at this

Thank you for posting at Dotnetfunda

Maheshp, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response