我试图加我的Silverlight应用程序上一个子域住到网页中的另一个子域。出于某种原因,这只是普通的不能正常工作......我的Silverlight应用程序加载为这样的一个页面上http://subA.domain.com/somepage.html:如何通过域访问Silverlight XAP文件?
<div id="silverlightControlHost">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
width="800px" height="600px">
<param name="source" value="http://subB.domain.com/SilverlightApp.xap" />
<param name="onerror" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="2.0.31005.0" />
<param name="autoUpgrade" value="true" />
<param name="enableHtmlAccess" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight"
style="border-style: none" />
</a>
</object>
<iframe style='visibility: hidden; height: 0; width: 0; border: 0px'></iframe>
</div>
如果我提出SilverlightApp.xap到subA.domain.com,它加载完美。需要哪些步骤来跨域访问XAP文件?我一直在试图弄清楚这个网络,似乎没有任何进展。
谢谢!