asp.net mvc - SVG files in VS2012 -


When browsing my MVC 4 site, my SVG files are not displayed properly. They work fine in other projects and fix the images on the same project when ASP.NET is hosted in IIS rather than the development server. I tried to add MIME using the code given below, but this is nothing Revenge. It seems that it was literally all night long Really confused & lt; StaticContent & gt; & Lt; MimeMap file extension = ".svg" mimeType = "image / svg + xml" /> & Lt; / staticContent & gt;

The best way to call SVG files is by: < Pre> & lt; Object data = 'svg-test.svg' type = 'image / svg + xml' width = '500' height = '500' / & gt;

Comments

Popular posts from this blog

javascript - Backbone pushState routes -

runtime error - Cannot find an overload for op_subtraction when subtracting datetime from datetime in powershell -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -