【问题标题】: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
【问题描述】:

如何让Pivot Server Application 在 IIS 6 上运行? cxml 的处理程序似乎没有正确注册,因为我收到 404 请求 .cxml 文件。

到目前为止我能看到的最接近的解决方案是在 http://forums.silverlight.net/forums/p/192470/454278.aspx 上,但这似乎不是正确的方法。我在 system.webserver/handlers 和 system.web/httpHandlers 下的 web.config 中都看到了处理程序。

【问题讨论】:

    标签: 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>
    

    此时一切正常。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-15
      • 1970-01-01
      • 1970-01-01
      • 2013-01-26
      • 1970-01-01
      相关资源
      最近更新 更多