Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run Silverlight with Apache Server (Under linux)

I need to deploy a Silverlight 2.0 application to an Apache Server, but it's under Linux.

Is this possible? I mean, Do I need .Net 3.5 installed in the server and a Web Site that can execute Asp.Net?

Thanks for you help...

like image 651
Jesus Jimenez Avatar asked Apr 08 '09 09:04

Jesus Jimenez


2 Answers

If the apache server is just serving up the silverlight application without any ASPX pages then you should be fine. Silverlight is a client side technology so it shouldn't require .NET on the server (unless of course you are hosting the silverlight application on an ASPX page).

If you want to view the silverlight content from a client machine running linux then you will need to look into installing Moonlight as Sam pointed out.

EDIT: Tim Sneath has a blog post that explains what needs to be configured on the web server to be able to host silverlight content. In short you need configure the following MIME types:

.xaml - application/xaml+xml

.xap - application/x-silverlight-app

like image 182
KevB Avatar answered Oct 22 '22 11:10

KevB


I had to define more MIME types than KevB suggests:

application/manifest            .manifest
application/xaml+xml            .xaml
application/x-ms-application    .application
application/x-ms-xbap           .xbap
application/octet-stream        .deploy
application/vnd.ms-xpsdocument  .xps
like image 29
skolima Avatar answered Oct 22 '22 13:10

skolima