如何让Silverlight Pivot Server应用程序在IIS 6上运行?
问题描述:
如何让Pivot Server Application在IIS 6上运行? cxml的处理程序似乎没有正确注册,因为我得到了一个404请求到.cxml文件。如何让Silverlight Pivot Server应用程序在IIS 6上运行?
我目前看到的最接近的解决方案是http://forums.silverlight.net/forums/p/192470/454278.aspx,但这似乎不是正确的方法。我在system.webserver/handlers和system.web/httpHandlers下看到web.config中的处理程序。
答
除了在pivot forum提出gsimard的扩展名映射,在这里转载出于方便:
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类型部分也需要取消注释:
<staticContent>
<mimeMap fileExtension=".cxml" mimeType="text/cxml" />
<mimeMap fileExtension=".dzc" mimeType="text/xml" />
<mimeMap fileExtension=".dzi" mimeType="text/xml" />
</staticContent>
此时一切正常。