1

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

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

4

1 回答 1

1

除了 gsimard 在pivot 论坛上提出的扩展映射外,为方便起见,在此转载:

    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

...中的 mime types 部分<system.webserver>也需要取消注释:

    <staticContent>
        <mimeMap fileExtension=".cxml" mimeType="text/cxml" />
        <mimeMap fileExtension=".dzc" mimeType="text/xml" />
        <mimeMap fileExtension=".dzi" mimeType="text/xml" />
    </staticContent>

此时一切正常。

于 2010-08-23T14:11:55.657 回答