<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Enabling cross-domain calls for Silverlight apps on self-hosted web services</title><link>http://blogs.msdn.com/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx</link><description>In order for a Silverlight (or Flash) app coming from one domain to be able to consume data from services in a different domain, the service must "allow" the app to do so by providing a policy file which grants access (to prevent all sorts of cross-site</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Cross domain policy files in self-hosted services</title><link>http://blogs.msdn.com/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx#8104293</link><pubDate>Fri, 07 Mar 2008 21:34:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8104293</guid><dc:creator>Silverlight Web Services Team</dc:creator><description>&lt;p&gt;One interesting question from the WCF forums: how to enable the cross-domain calls to self-hosted services,&lt;/p&gt;
</description></item><item><title>Silverlight Cream for March 15, 2008 -- #225</title><link>http://blogs.msdn.com/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx#8236259</link><pubDate>Sat, 15 Mar 2008 22:45:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8236259</guid><dc:creator>Community Blogs</dc:creator><description>&lt;p&gt;Karen Corby provides us 3 SL2 controls, Carlos Figueira details the cross-domain policy file, Jesse Liberty&lt;/p&gt;
</description></item><item><title>Ressources développeur pour Silverlight 2</title><link>http://blogs.msdn.com/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx#8308244</link><pubDate>Tue, 18 Mar 2008 10:19:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8308244</guid><dc:creator>Pierre Lagarde, Blog</dc:creator><description>&lt;p&gt;Depuis la mise a disponibilit&amp;#233; de Silverlight 2 au Mix08 il y a eu beaucoup d'articles, de blogs sur&lt;/p&gt;
</description></item><item><title>Debugging Web Service Usage in Silverlight 2</title><link>http://blogs.msdn.com/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx#8399345</link><pubDate>Wed, 16 Apr 2008 21:40:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8399345</guid><dc:creator>Silverlight Web Services Team</dc:creator><description>&lt;p&gt;Silverlight 2 Beta1 makes it easy to use Web Services based on either the WCF technology (Windows Communication&lt;/p&gt;
</description></item><item><title>Tips : Cross domain policy files in self-hosted Services</title><link>http://blogs.msdn.com/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx#8848026</link><pubDate>Mon, 11 Aug 2008 15:24:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8848026</guid><dc:creator>A Cup of Silverlight, RIA &amp; Interoperability</dc:creator><description>&lt;p&gt;This tip concerns those who wants to use self hosting capabilities of services in WCF or Restlet in cross-domain&lt;/p&gt;
</description></item><item><title>Silverlight and WCF cross site scripting issue</title><link>http://blogs.msdn.com/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx#9016064</link><pubDate>Sat, 25 Oct 2008 18:15:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9016064</guid><dc:creator>Shahar Ron</dc:creator><description>&lt;p&gt;Recently I tried to call a WCF service hosted in a windows service from silverlight. I got an HTTP 404&lt;/p&gt;
</description></item><item><title>re: Enabling cross-domain calls for Silverlight apps on self-hosted web services</title><link>http://blogs.msdn.com/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx#9018122</link><pubDate>Mon, 27 Oct 2008 16:04:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9018122</guid><dc:creator>ShaharRon</dc:creator><description>&lt;p&gt;See a small correction needed to your clientaccesspolicy.xml &lt;/p&gt;
</description></item><item><title>re: Enabling cross-domain calls for Silverlight apps on self-hosted web services</title><link>http://blogs.msdn.com/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx#9018125</link><pubDate>Mon, 27 Oct 2008 16:05:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9018125</guid><dc:creator>ShaharRon</dc:creator><description>&lt;p&gt;I mean see it here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.microsoft.co.il/blogs/shaharron/archive/2008/10/25/silverlight-and-wcf-"&gt;http://blogs.microsoft.co.il/blogs/shaharron/archive/2008/10/25/silverlight-and-wcf-&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;cross-site-scripting-issue.aspx&lt;/p&gt;
</description></item><item><title>Enabling cross-domain calls for Silverlight on self-hosted WCF services</title><link>http://blogs.msdn.com/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx#9183649</link><pubDate>Mon, 08 Dec 2008 08:57:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9183649</guid><dc:creator>Zuker On Foundations</dc:creator><description>&lt;p&gt;Read the full details Here . Carlos came up with an elegant way to enable cross domain calls from silverlight&lt;/p&gt;
</description></item><item><title>Enabling cross-domain calls for Silverlight on self-hosted WCF services</title><link>http://blogs.msdn.com/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx#9320857</link><pubDate>Thu, 15 Jan 2009 17:03:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9320857</guid><dc:creator>Zuker On Foundations</dc:creator><description>&lt;p&gt;Read the full details Here . Carlos came up with an elegant way to enable cross domain calls from silverlight&lt;/p&gt;
</description></item><item><title>re: Enabling cross-domain calls for Silverlight apps on self-hosted web services</title><link>http://blogs.msdn.com/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx#9462138</link><pubDate>Fri, 06 Mar 2009 11:53:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9462138</guid><dc:creator>Masande</dc:creator><description>&lt;p&gt;Hi Carlos I was able to implement and run the sample code you posted successfuly but get the error &lt;/p&gt;
&lt;p&gt;&amp;quot;This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. Please see the inner exception for more details&amp;quot; when running that very same code in the Web Service Software Factory. Please assist&lt;/p&gt;
</description></item><item><title>re: Enabling cross-domain calls for Silverlight apps on self-hosted web services</title><link>http://blogs.msdn.com/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx#9482386</link><pubDate>Tue, 17 Mar 2009 07:12:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9482386</guid><dc:creator>xmhai</dc:creator><description>&lt;p&gt;Hi, Carlos,&lt;/p&gt;
&lt;p&gt;It only works fine for the first 5 requests, i.e. click the &amp;quot;refresh&amp;quot; button in IE. After that, &amp;quot;The remote server returned an error: NotFound&amp;quot; exception will raise for subsequent requests. Then I have to shutdown the Service. Do you have any idea? it looks like buffer overflown.&lt;/p&gt;
</description></item><item><title>ClientAccessPolicy.xml sem IIS</title><link>http://blogs.msdn.com/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx#9618670</link><pubDate>Fri, 15 May 2009 17:50:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9618670</guid><dc:creator>Israel Aece</dc:creator><description>&lt;p&gt;ClientAccessPolicy.xml sem IIS&lt;/p&gt;
</description></item><item><title>re: Enabling cross-domain calls for Silverlight apps on self-hosted web services</title><link>http://blogs.msdn.com/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx#9854392</link><pubDate>Fri, 31 Jul 2009 16:09:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9854392</guid><dc:creator>mdmSoftware</dc:creator><description>&lt;p&gt;This works great for me provided the WCF service is up and running on my local box prior to launching my Silverlight application. &amp;nbsp;I have a self hosted WCF Windows service and I am hitting it from a Silverlight page using the localhost cross domain access trick above. &amp;nbsp;If I do not launch my WCF service until after hitting my Silverlight page but rather launch it after, my Silverlight application can never recover. &amp;nbsp;Looks like the clientaccess and crossdomain negotiation for the host domain are done somewhere behind the scenes in the client factory and I can't seem to find a way to re-initiate the check for security access. &amp;nbsp;What am I missing?&lt;/p&gt;
</description></item><item><title>re: Enabling cross-domain calls for Silverlight apps on self-hosted web services</title><link>http://blogs.msdn.com/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx#9921769</link><pubDate>Fri, 13 Nov 2009 05:49:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9921769</guid><dc:creator>si</dc:creator><description>&lt;p&gt;How can this example *ever* work inside Silverlight when ITest.Echo is a synchronous operation?&lt;/p&gt;
&lt;p&gt;Aside from that, even using asynchronous methods I still get a the same problem as Masande, I can browse to &lt;a rel="nofollow" target="_new" href="http://localhost:8731/Design_Time_Addresses/MyService/clientaccesspolicy.xml"&gt;http://localhost:8731/Design_Time_Addresses/MyService/clientaccesspolicy.xml&lt;/a&gt; and see that it is being generated, however my Silverlight still throws the cross-domain exception.&lt;/p&gt;
</description></item><item><title>re: Enabling cross-domain calls for Silverlight apps on self-hosted web services</title><link>http://blogs.msdn.com/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx#9933854</link><pubDate>Tue, 08 Dec 2009 01:48:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9933854</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;When is the &amp;quot;Test&amp;quot; Method run? I don't quite understand how this works.&lt;/p&gt;
</description></item><item><title>re: Enabling cross-domain calls for Silverlight apps on self-hosted web services</title><link>http://blogs.msdn.com/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx#9933981</link><pubDate>Tue, 08 Dec 2009 11:09:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9933981</guid><dc:creator>AlWiNu</dc:creator><description>&lt;p&gt;Hi [si]...&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="&lt;a rel="nofollow" target="_new" href="http://localhost:8731/"&gt;http://localhost:8731/&lt;/a&gt;Design_Time_Addresses/MyService/"&gt;&lt;a rel="nofollow" target="_new" href="http://localhost:8731/"&gt;http://localhost:8731/&lt;/a&gt;Design_Time_Addresses/MyService/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;is not the root!&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://localhost:8731/"&gt;http://localhost:8731/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;this is your root&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://localhost:8731/"&gt;http://localhost:8731/&lt;/a&gt;clientaccesspolicy.xml&lt;/p&gt;
&lt;p&gt;this must be the link to your clientaccesspolicy.xml&lt;/p&gt;
</description></item></channel></rss>