Can't embed Silverlight app in Wiki

Sep 14, 2009 at 9:43 AM

I recently moved my xap file to a different server, and I no longer can get the embedded Silverlight working on my project's wiki page (

I am sure I've got the right URL for the XAP file. Also, I can successfully embed the application on a HTML page on my web server, so I know there is not a problem with the silverlight app itself:

The Wiki markup I am using is:


any ideas as to why this is not working for me?




Sep 14, 2009 at 7:31 PM

We downloaded your app and were able to run it locally so it looks like the app isn't setup to work as a cross-domain silverlight app.  Silverlight has a different security model and certain restrictions in place for cross-domain apps.  There is a detailed discussion about this issue here.

Sep 15, 2009 at 12:33 PM

Well I read the discussion, but I am none the wiser as to what I should do. My silverlight requires no access to webservices or other resources on the host server. Everything it needs is contained within the XAP file.

I've tried creating a clientaccesspolicy.xml file, but that has not helped.

What steps should I take to get this working?



Sep 15, 2009 at 1:43 PM

I'm beginning to think this is a mime type issue. My host is returning text/plain instead of application/x-silverlight-app

It seems it will work anyway if the hosting page is on the same domain, but I have read a few blog posts suggesting you can't get it to work cross domain without getting the mime type correct. Unfortunately, my shared hosting provider seem unwilling to set this up for me.



Sep 15, 2009 at 5:22 PM

I remember reading that as well.  There are a few free silverlight hosting sites out there I believe.  Maybe you can try one of those.


Sep 19, 2009 at 12:57 PM

I've managed to solve this problem by adding a .htaccess file to the root of my webspace with the following contents (only the xap line is really necessary):

AddType application/x-silverlight-app .xap
AddType application/xaml+xml .xaml
AddType application/x-ms-xbap .xbap

might be worth a try for anyone else who runs into this problem and is hosting on Linux

I had to clear my browser cache before it would load again.