Run Silverlight with Apache Server (Under linux)

被刻印的时光 ゝ 提交于 2019-12-18 12:27:07

问题


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...


回答1:


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




回答2:


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



回答3:


You should take advantage of silverlight streaming. It is free upto 10 mins of video @ 1.4 Mbps.

Instructions here:

http://msdn.microsoft.com/en-us/library/bb851621.aspx

samples



来源:https://stackoverflow.com/questions/729294/run-silverlight-with-apache-server-under-linux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!