2011-08-09 5 views
0

私のASP .NETアプリケーションでは、私のSVG要素が適切に描画されていません。私はいくつかのMIMEタイプの合併症のためだと思います。SVG要素はローカルにレンダリングされませんが、リモートにレンダリングされますか?

以下、私のWeb.Configファイルが表示されます。

これを引き起こしている可能性が何
<?xml version="1.0"?> 
<!-- 
    For more information on how to configure your ASP.NET application, please visit 
    http://go.microsoft.com/fwlink/?LinkId=169433 
    --> 
<configuration> 
    <configSections> 
    <section name="microsoft.visualstudio.testtools" type="Microsoft.VisualStudio.TestTools.UnitTesting.TestConfigurationSection, Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> 
    </configSections> 
    <system.web> 
    <globalization culture="en-US" uiCulture="en-US"/> 
    <customErrors mode="On"/> 
    <pages validateRequest="false"/> 
    <compilation debug="true"/> 
    <webServices> 
     <protocols> 
     <clear /> 
     <add name="HttpGet"/> 
     <add name="HttpPost"/> 
     </protocols> 
    </webServices> 
    <sessionState timeout="1440" /> 
    </system.web> 
    <system.webServer> 
    <modules runAllManagedModulesForAllRequests="true"/> 
    <staticContent> 
     <remove fileExtension=".svg" /> 
     <remove fileExtension=".svgz" /> 
     <mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> 
     <mimeMap fileExtension=".svgz" mimeType="image/svg+xml" /> 
    </staticContent> 
    </system.webServer> 
</configuration> 

?私はすべてのブラウザで問題を再確認できます。

答えて

1

IIS expressを使用してこれを解決しました。 Visual Studioの組み込み開発サーバーでは、MIMEタイプを変更することはできません。

関連する問題