How do I get the Silverlight Pivot Server application to run on IIS 6?

旧街凉风 提交于 2020-01-25 04:10:33

问题


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.

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.


回答1:


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

...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>

Everything worked at this point.



来源:https://stackoverflow.com/questions/3525782/how-do-i-get-the-silverlight-pivot-server-application-to-run-on-iis-6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!