如何在IIS 6上运行Pivot Server Application? cxml的处理程序似乎没有正确注册,因为我得到了一个404来处理.cxml文件的请求。
到目前为止我能看到的最接近的解决方案是http://forums.silverlight.net/forums/p/192470/454278.aspx,但这似乎不是正确的方法。我在system.webserver / handlers和system.web / httpHandlers下的web.config中看到了处理程序。
答案 0 :(得分: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类型部分也需要取消注释:
<staticContent>
<mimeMap fileExtension=".cxml" mimeType="text/cxml" />
<mimeMap fileExtension=".dzc" mimeType="text/xml" />
<mimeMap fileExtension=".dzi" mimeType="text/xml" />
</staticContent>
此时一切正常。