1

Pivot サーバー アプリケーションを 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 によって提案された拡張マッピングに加えて、便宜上ここに転載します。

    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 タイプ セクション<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 に答える