Skip to main content
Home Forums General Silverlight Hosting and Streaming Silverlight Hosting
5 replies. Latest Post by donnyb on June 9, 2009.
(0)
vitalyny
Member
0 points
2 Posts
07-23-2008 4:20 PM |
Hello everybody!
Sorry for a stupid questions, I'm just a novice in Silverlight technology.
1) Is it required hosting to be Windows based to host silverlight control? Or that might be Linux? Can just copy .xap file and point to it from HTML page?
2) If I have a silverlight control on some hosting (let's say somewhere in www.mywebsite.com), can I use it from the remote server (let's say www.someone.com)? So I provide a code for html page for the remote server which is referencing my hosting. Is that possible, or .xap file still required? This is needed to embed my control into the page on www.someone.com web site.
Thanks in advance!
texmex5
Contributor
2239 points
382 Posts
07-23-2008 5:00 PM |
vitalyny:1) Is it required hosting to be Windows based to host silverlight control? Or that might be Linux? Can just copy .xap file and point to it from HTML page?
Silverlight has the same requirements to the webserver as HTML pages do. So if your linux page can serve HTML it can manage with Silverlight. You just need to add the Silverlight app to your HTML and upload the .xap :)
vitalyny: If I have a silverlight control on some hosting (let's say somewhere in www.mywebsite.com), can I use it from the remote server (let's say www.someone.com)? So I provide a code for html page for the remote server which is referencing my hosting. Is that possible, or .xap file still required? This is needed to embed my control into the page on www.someone.com web site.
Where-ever you want to use your silverlight application, you just need to reference the object tags source to the right place:
<!-- Silverlight plug-in control --> <object id="SilverlightPlugInID" data="data:application/x-silverlight," type="application/x-silverlight" width="100%" height="100%"> <param name="source" value="http://www.someone.com/~something/is/here/SilverlightApplication.xap" /> <param name="onError" value="onErrorHandler" /> <param name="onResize" value="onResizeHandler" /> </object>
I think you might also want to check out the deployment article in Silverlight documentation. And check out the Silverlight Streaming that lets you host your silverlight applications (and videos) for free.. :)
Hope this helps :)
07-23-2008 5:06 PM |
Sounds great!
Do I need to configure mime types for .xap extension?
07-24-2008 3:01 AM |
On IIS you might need to yes :)
http://simplesilverlight.wordpress.com/2008/03/07/register-xap-file-in-iis/
MarauderzMY
607 points
265 Posts
07-24-2008 9:47 PM |
i think the general rule of thumb is to set the mime type regardless of whatever web server you're using.
donnyb
2 points
1 Posts
06-09-2009 9:44 PM |
Do you have to use Media services with Silver Light? What is the best practices? We are looking at converting 300+ 4 minute videos to silverlight.