简体   繁体   中英

Is it possible to access a Silverlight XAP file across a two local host domain?

Hi I had created a silver light application with media player. And it is working in that app fine. When i use the embed code to some other application as meta tag. It fails to load the zap file and video. Can i know how can i fix it.

Here is code:

<object height="360" width="640" type="application/x-silverlight-2" data="data:application/x-silverlight,">
<param value="http://localhost:1069/ClientBin/MymediaPlayer.xap" name="source">
<param value="onSilverlightError" name="onerror">
<param value="white" name="background">
<param value="m=http://localhost:1069/content/en-us/videofile/Butterfly.wmv" name="initParams">         
        </object>

When i use this in the silver light application it is working. but this meta tag should work on all other domain. I had tested on two local host domain.

Thanks in Advance.

KK

You need to define a clientaccesspolicy.xml file or a crossdomain.xml file in order to permit access to your web services from different domains.

This is discussed here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM