【问题标题】:How do I get the Silverlight Pivot Server application to run on IIS 6?如何让 Silverlight Pivot Server 应用程序在 IIS 6 上运行?
【发布时间】:2010-08-19 20:08:07
【问题描述】:
【问题讨论】:
标签:
silverlight
iis-6
httphandler
pivotviewer
【解决方案1】:
除了gsimard在pivot forum上提出的扩展映射,为方便起见,在此转载:
In IIS 6 --> properties of the web application --> Directory tab --> Configuration ...
I have added the following :
- Executable: C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
Extension: .cxml
Limit to: GET
Script engine: checked
Verify that file exists: unchecked
- Executable: C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
Extension: .dzc
Limit to: GET
Script engine: checked
Verify that file exists: unchecked
- Executable: C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
Extension: .dzi
Limit to: GET
Script engine: checked
Verify that file exists: unchecked
At that point, the sample was able to run but no image was displayed. Then I thought that I could also add JPG.
- Executable: C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
Extension: .jpg
Limit to: GET
Script engine: checked
Verify that file exists: unchecked
...<system.webserver> 中的 mime types 部分也需要取消注释:
<staticContent>
<mimeMap fileExtension=".cxml" mimeType="text/cxml" />
<mimeMap fileExtension=".dzc" mimeType="text/xml" />
<mimeMap fileExtension=".dzi" mimeType="text/xml" />
</staticContent>
此时一切正常。