silverlight

IIS部署Silverlight

一个人想着一个人 提交于 2020-01-21 00:42:42
题设:   网站如果应用了Silverlight技术,直接部署到IIS中是无法正常运行的,   分析:   因为Silverlight应用所对应的三种MIME类型没有在IIS中注册,所以Silverlight相关的文件无法下载到客户端,而Silverlight又是客户端应用,这样网站运行不正常。   解决:   Silverlight的发布涉及三种类型的文件:.xap, .xaml, .xbap,这些后缀名对于IIS6和IIS7来说都是新的,他们对应的MIME类型没有默认被添加到IIS中,所以需要手动进行注册,注册的内容为:   .xap   application/x-silverlight-app   .xaml  application/xaml+xml   .xbap  application/x-ms-xbap   注册MIME类型的方法,打开IIS,在网站或默认网站上右击,选择属性,点击 ‘HTTP头选项卡’找到“MIME类型(M)”按纽,点击进行对MIME类型的新建。添加MIME完成后将网站和对应的应用程序池重启,重新打开网站即恢复正常。   网站如果应用了Silverlight技术,直接部署到IIS中是无法正常运行的,   分析:   因为Silverlight应用所对应的三种MIME类型没有在IIS中注册,所以Silverlight相关的文件无法下载到客户端

为Silverlight应用程序配置IIS

柔情痞子 提交于 2020-01-21 00:03:55
原文地址:http://learn.iis.net/page.aspx/262/configuring-iis-for-silverlight-applications/ 介绍 微软Silverlight是跨浏览器、跨平台的插件技术以及用来交付下一代基于.NET媒体体验和丰富交互性的Web应用程序技术。Silverlight提供灵活的编程模型以支持AJAX、VB、C#、Python和Ruby,并且可以与已有Web应用程序进行集成。Silverlight支持快速、低成本、高效地发布高质量媒体到运行在Mac OS和Windows的主要浏览器。 大多数情况下,宿主不需要对Silverlight进行特别部署。尽管如此,我们还是检查一些会阻止Silverlight正常运行的基本项目。 MIME类型 在Windows Server 2008 IIS 7.0环境下 所有支持Silverlight运行所需要的所有MIME类型都被Windows 2008 IIS 7.0和Windows Vista RTM默认支持。Windows Vista RTM客户可以通过“IIS管理器”添加MIME类型,单击“MIME类型”然后点击“添加”并添加如下MIME类型: .xap application/x-silverlight-app .xaml application/xaml+xml .xbap

silverlight发布到iis中

主宰稳场 提交于 2020-01-21 00:02:50
操作系统:win7 x32 旗舰版 silverlight:4.0   首先检查自己的机器上是否装有iis,在开始菜单的输入里输入iis就知道了 如果没有也没关系,打开控制面板->程序->打开或关闭Windows功能找到IIS相关,将前面的勾选上然后点击确定 然后打开IIS管理器,依次展开左上角的节点,找到网站节点 在网站节点上点击鼠标右键,添加网站,在弹出的对话框中输入网站名称和网站根目录地址,分配一个端口号 点击确定,这样网站就建好了,双击功能视图中的默认文档,可以设置默认启动的网页: 点击计算机名称,在右侧操作栏中找到“更改.net framework版本,将其改完4.0: 同样点击应用程序池,在右侧操作中选择”设置应用程序池默认设置“,也将其版本改完4.0: 最后我们在浏览器的地址栏输入 http://localhost:800/ 就可以打开我们的网页了 来源: https://www.cnblogs.com/infly123/archive/2013/04/07/silvIIS.html

Silverlight在IIS中的配置

六月ゝ 毕业季﹏ 提交于 2020-01-20 23:57:38
Silverlight 在 IIS 中的配置 在Silverlight中需要使用xap、XAML文件类型,因此如果您想在IIS服务器上使用Silverlight 4.0程序,所以必须在IIS中注册 xaml和xap的MIME文件类型,否则页面会报错误:无法下载SilverLight应用程序,请查看Web服务器设置。如下: 错误:Unhandled Error in Silverlight Application Code:2104 Category:initializeError    Message:无法下载silverlight 应用程序。请查看Web服务器设置 1 在Windows 2003 IIS 6.0环境下: 打开IIS->站点属性->HTTP头->MIME类型->新建: .xap application/x-silverlight-app   .xaml application/xaml+xml 2 在Windows Server 2008 IIS 7.0环境下 添加如下MIME类型: .xap application/x-silverlight-app   .xaml application/xaml+xml   .xbap application/x-ms-xbap 当然,你还可以通过添加如下MIME类型到环境的 %windir%\system32\inetsrv

配置支持Silverlight的Web服务器

本秂侑毒 提交于 2020-01-20 23:35:55
部署Silverlight到产品Web服务器是一个相当容易的过程,尽管有时候会有一些错觉——譬如,认为Silverlight需要部署在基于微软的Web服务器(IIS)上,事实上, Silverlight不强制一定部署在基于微软的Web服务器上,Apache也可以像IIS一样,轻松愉快的支持Silverlight运行。 但是还是要那么一点东东要指出来:Web服务器通常都只支持有限种已知扩展名的静态文件内容。看起来都很好,但是Silverlight引入了两个新的文件扩展(.xaml为松散XAML文件;.xap为基于zip压缩的二进制包格式文件),因此,你需要为web服务器添加MIME类型,这样才能让Web服务器识别并处理那些类型的文件。下面列出了你需要添加到Web服务器的MIME类型: Extension MIME Type .xaml application/xaml+xml .xap application/x-silverlight-app 这些就是你所有需要做的。但是具体到如何为不同的web服务器添加MIME类型,实际因web服务的不同而不同,下面列出了目前流行的一些web服务器和他们的链接,你可以从哪里找到如何配置和更多的信息: Apache ( 2.0 , 1.3 ) IIS ( 7 / 6.0 / 5.0 / 4.0 ) lighttpd Sun Java System

What does WPF still have to offer over Silverlight 4?

瘦欲@ 提交于 2020-01-19 06:03:36
问题 Given the list of new features announced in Silverlight 4, when is WPF still required? 回答1: WPF still has a lot fuller 3D rendering capabilities. Also even though they announced enhancements to the commanding and binding capabilities, that's no guarantee that it will have the full ability that WPF currently has or will have in the next version Edit: After playing around with Silverlight 4 beta, it looks like pretty much all of the new features (webcam, file access, full screen keyboard, COM

What does WPF still have to offer over Silverlight 4?

早过忘川 提交于 2020-01-19 06:02:06
问题 Given the list of new features announced in Silverlight 4, when is WPF still required? 回答1: WPF still has a lot fuller 3D rendering capabilities. Also even though they announced enhancements to the commanding and binding capabilities, that's no guarantee that it will have the full ability that WPF currently has or will have in the next version Edit: After playing around with Silverlight 4 beta, it looks like pretty much all of the new features (webcam, file access, full screen keyboard, COM

Unzip a zip file in silverlight

非 Y 不嫁゛ 提交于 2020-01-17 14:02:10
问题 I am trying to develop code to unzip file from the zip file in Silverlight 5. The files are in a directory within the zip file. I translated this code I found elsewhere from c# to VB since we are a VB shop. It is failing on the fourth line "Object reference not set to an instance of an object.". I realize now that the problem is that the third line is expecting a relative uri and I am passing it a file, but I don't know how to fix this. Can you tell me what is wrong with this code. I will

Scrollviewer and ItemsControl VerticalScrolling into nirvana

别等时光非礼了梦想. 提交于 2020-01-17 08:00:11
问题 Hi i've got a complex ItemsControl wich is used to display news (variable height!) with a slide/fade in effect. (like google currents) my problem now is that the scrollviewer will calculate the available scrollingsize left based on whatever.. that will end up in a very ugly way of scrolling if the user scrolls fast! sometimes the scrollview scrolls into the nirvana. i thought this might be the cause of virtualization but i'm not able to deactivate it. as you can see i ve already replaced the

Scrollviewer and ItemsControl VerticalScrolling into nirvana

天涯浪子 提交于 2020-01-17 07:59:29
问题 Hi i've got a complex ItemsControl wich is used to display news (variable height!) with a slide/fade in effect. (like google currents) my problem now is that the scrollviewer will calculate the available scrollingsize left based on whatever.. that will end up in a very ugly way of scrolling if the user scrolls fast! sometimes the scrollview scrolls into the nirvana. i thought this might be the cause of virtualization but i'm not able to deactivate it. as you can see i ve already replaced the