本文介绍了使用 Apache 服务器运行 Silverlight(在 linux 下)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将 Silverlight 2.0 应用程序部署到 Apache 服务器,但它在 Linux 下.

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

这可能吗?我的意思是,我需要在服务器上安装 .Net 3.5 和一个可以执行 Asp.Net 的网站吗?

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

谢谢你的帮助...

推荐答案

如果 apache 服务器只是为 Silverlight 应用程序提供服务,而没有任何 ASPX 页面,那么您应该没问题.Silverlight 是一种客户端技术,因此它不需要在服务器上安装 .NET(当然,除非您在 ASPX 页面上托管 Silverlight 应用程序).

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

如果您想从运行 linux 的客户端机器上查看 Silverlight 内容,那么您需要按照 Sam 指出的那样安装 Moonlight.

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.

Tim Sneath 有一个 博客文章 解释了需要在 Web 服务器上配置什么才能托管 Silverlight 内容.简而言之,您需要配置以下 MIME 类型:

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 - 应用程序/xaml+xml

.xap - 应用程序/x-silverlight-app

.xap - application/x-silverlight-app

这篇关于使用 Apache 服务器运行 Silverlight(在 linux 下)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 14:03