Recently I tried to call a WCF service hosted in a windows service from silverlight. I got an HTTP 404 ( Not Found ) error. This is because the WCF service is not in the same domain (=site) as the silverlight page calling it and so the action was considered cross site scripting and hence blocked. This doesn’t happen only in self hosted WCF services but also when the WCF is hosted in IIS but in a different site. The solution is to enable cross site scripting for the WCF service. This is done by adding...