如何使Silverlight Pivot Server应用程序在IIS 6上运行? [英] How do I get the Silverlight Pivot Server application to run on IIS 6?

查看:80
本文介绍了如何使Silverlight Pivot Server应用程序在IIS 6上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取数据透视图服务器应用程序在IIS 6上运行? cxml的处理程序似乎未正确注册,因为我收到了404请求.cxml文件的代码.

How do I get the Pivot Server Application to run on IIS 6? The handlers for the cxml don't seem to be registering properly, because I get a 404 for requests to .cxml files.

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

The closest solution I can see so far is on http://forums.silverlight.net/forums/p/192470/454278.aspx , but this doesn't seem to be the right way to do it. I see the handlers in the web.config under both system.webserver/handlers and system.web/httpHandlers.

推荐答案

除了gsimard在

In addition to the extension mappings proposed by gsimard on the pivot forum, reprinted here for convenience:

    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类型部分也需要取消注释:

...the mime types section in <system.webserver> also needs to be uncommented:

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

此时一切正常.

这篇关于如何使Silverlight Pivot Server应用程序在IIS 6上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆