title: Silverlight failing with Cross Domain Error
body: <p>I have an application that is built using ASP.NET, with an embedded Silverlight Object that communicates with a WCF back end. It is set up like so:</p>
  
  <p>Server 1: Hosts ASP.NET Website on IIS7</p>
  
  <p>Server 2: Hosts WCF Application on IIS7</p>
  
  <p>My Machine will try to access Server 1 over the internet to log in to the website. Server 1 will the authenticate the user using the WCF Web Service over our internal network on Server 2. I can do this but when it loads the silverlight object it crashes, complaining about CrossDomain/ClientAccessPolicy failure. So to be sure I put those two files on every folder in the inetpub/wwwroot on both Server 1 and 2, just to be sure. But I am still getting the same error. </p>
  
  <p>When I run the application from Server 1, it can connect to the site through its local network IP and it all works, it also works when I run the ASP.NET application from Visual Studio 2010 on my own machine, with the web service references pointing to Server 2. </p>
  
  <p>I am almost at my wits end, there have been so many red herrings that I have tried and none have worked. I am not even sure if it is Silverlight/WCF or the IIS configuration on each server that is breaking it.</p>
  
  <p>If anyone can help me shed some light on this I would greatly appreciate it.</p>
  
  <p>Thanks,
  Stuart.</p>