I was recently made aware of a couple of people having issues with WCF services (or ASP.NET applications) when using the MVVM Light project template for Silverlight. There is a blog post and a StackOverflow question, so what exactly is happening there?
Well in fact it is pretty simple when you know how Silverlight connects to web services. Due to the security model of Silverlight, the application cannot connect to a web site if it is not originating of this very website. In laymen's terms, it means that the application can only connect to a web server if it also comes from the same webserver. For example, if the Silverlight application is served by http://www.galasoft.com, it won't be able to connect to, say, http://www.cnn.com without getting an exception. We talk about cross-domain access restrictions.
Of course there are ways around that, for instance a website can ...
Go to the complete details ...
Found interesting? Add this to: