silverlight 托管是否需要任何额外费用或特殊的网络服务器?
如果我想托管一个使用 Silverlight 开发的网站,是否需要任何额外费用或特殊的 Web 服务器?或者我可以将其托管在我当前的 ASP.NET 托管提供商上?
If I want to host a site developed with Silverlight does it require any additional cost or special web server? Or i can just host it on my current ASP.NET hosting provider?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
对服务器的唯一要求是需要注册 silverlight MIME 类型:
.xap application/x-silverlight-app
.xaml application/xaml+xml
The only requirement to a server is that silverlight MIME types need to be registered:
.xap application/x-silverlight-app
.xaml application/xaml+xml
Silverlight 与 JavaScript 类似,全部在客户端执行,任何服务器回调功能的处理方式与常规 asp.net 项目完全相同。所以上面的 mime 类型是任何托管处理 ASP.NET 应该具有的唯一类型。
Silverlight is all executed on the client side similar to JavaScript with any server callback functionality handled exactly the same as a regular asp.net project. So the above mime type is the only thing which any hosting handling asp.net should have.
由于您特别提到了成本,我想我会引导您访问 Silverlight Streaming 上的此网址。您每月可以免费获得 10GB 存储帐户和高达 5TB 的数据传输...服务结束测试后可能会发生变化。因此,根据您要使用 Silverlight 应用程序完成的任务,这可能是有利的。
Since you speciifcally mentioned cost Id thought Id direct you to this url on Silverlight Streaming. You can get a 10GB storage account and up to 5TB of data transfer per month for free...subject to change once the service comes out of beta. So depending on what you're going to accomplish with your Silverlight App this may advantageous.
对于 Silverlight 2 或更高版本,您只需要 .xap MIME 类型
For Silverlight 2 or later, all you need is the .xap MIME type
虽然强烈建议 .xap 和 .xaml 内容在 Content-Type 标头中使用相应的 mime 类型来提供,但从 Silverlight 插件的角度来看,这实际上并不是一个要求。
但是,如果没有这些扩展名的特定 mime 映射或 .* 映射到 application/octet-stream,默认的 IIS6/7 安装将无法提供 .xap 或 .xaml 文件。
服务器上不需要额外的费用或任何特殊的东西。也不需要 ASP.NET,您可以在 Linux 上通过 Apache 使用 PHP 轻松地提供 Silverlight 内容。
Whilst its highly recommended that .xap and .xaml content are served with the corresponding mime type in the Content-Type header it isn't actually a requirement from the Silverlight plugin's point of view.
However a default IIS6/7 installation won't serve .xap or .xaml files without either a specific mime mapping for these extensions or .* mapping to application/octet-stream.
There are no additional costs nor anything special needed on the server. ASP.NET is not needed either, you could just as easily serve Silverlight content using PHP via Apache on Linux.