Azure补救措施的SVG都没有为我工作

时间:2013-08-10 06:16:14

标签: asp.net-mvc azure svg

这些帖子中概述的方法对我没有用处:

- 在Windows Azure网站中使用SVG:(Use SVG in Windows Azure Websites

- 通常的HTML 5媒体类型:(http://odetocode.com/blogs/scott/archive/2012/08/07/configuration-tips-for-asp-net-mvc-4-on-a-windows.aspx

-ASP.NET启用SVG图像Azure,将其放入system.webServer:(https://gist.github.com/kyranjamie/5104476

具体来说,我购买了一个视频播放器产品,其控制栏使用svg来绘制其资源,播放/暂停/倒带/ FF /全屏按钮等。我已将播放器部署到其他服务器并且控件呈现。我知道我的Azure服务器上根本没有定义类型,而且需要。我该怎么做?

我的项目是通过VS 2012的ASP.NET MVC 4应用程序。如果您有任何建议,我们将不胜感激。以上这些对我没有任何影响。

  <system.webServer>
    <staticContent>
      <remove fileExtension=".mp4"/>
      <remove fileExtension=".ogv"/>
      <remove fileExtension=".webm"/>
      <remove fileExtension=".svg"/>
      <mimeMap fileExtension=".mp4" mimeType="video/mp4" />
      <mimeMap fileExtension=".ogv" mimeType="video/ogg" />
      <mimeMap fileExtension=".webm" mimeType="video/webm" />
      <mimeMap fileExtension=".svg" mimeType="image/svg+xml"/>
    </staticContent>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
      <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
      <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
      <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
      <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />
      <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
    </handlers>    
  </system.webServer>

0 个答案:

没有答案