Silverlight & WCF projects in different solutions

Getting my WCF Service to talk to my Silverlight app in Visual Studio
 
I have been developing a Silverlight application to get data from a pre-existing WCF Service. The code for the service was already in production and was available in its own Visual Studio solution. In order to debug my Silverlight application, which was running from within a different solution, I needed to add a crossdomain.xml file to the root of the folder where the service was running from. This is necessary even though both solutions were using the ASP.Net Development Server (localhost) on different ports. A full explaination is available on MSDN for Making a Service Available Across Domain Boundaries. Tim Heuer also has a very good explaination of the problem and solution here.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s