Skip to main content

Microsoft Silverlight

Answered Question Silverlight HostingRSS Feed

(0)

vitalyny
vitalyny

Member

Member

0 points

2 Posts

Silverlight Hosting

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
texmex5

Contributor

Contributor

2239 points

382 Posts

Re: Silverlight Hosting

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 :)

vitalyny
vitalyny

Member

Member

0 points

2 Posts

Re: Silverlight Hosting

Sounds great!

Do I need to configure mime types for .xap extension?

texmex5
texmex5

Contributor

Contributor

2239 points

382 Posts

Answered Question

Re: Silverlight Hosting

 On IIS you might need to yes :)

http://simplesilverlight.wordpress.com/2008/03/07/register-xap-file-in-iis/

MarauderzMY
MarauderzMY

Member

Member

607 points

265 Posts

Re: Re: Silverlight Hosting

i think the general rule of thumb is to set the mime type regardless of whatever web server you're using.

donnyb
donnyb

Member

Member

2 points

1 Posts

Re: Re: Re: Silverlight Hosting

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.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities