png graphics used when I expected svg
-
I've written my first real web page: one .html file and one .css file with .svg and .png drawings in a images sub-directory using VS2008 as an editor and Inkscape and Graphviz Dot to generate the .svg and .png graphics. When I open the page from my Windows 8 PC using IE10 the .svg graphics are used, but when I upload it to the server I use, and open it using IE10 the .png graphics are loaded instead. http://www.jgdprojects.co.uk/HTMLPage.htm[^] I've used IE10 Dev Tools to validate the HTML5 and CSS and all seems fine according to the IE10 Dev Tools, apart from IE10 Compatability Mode and IE7 mode when I get a '404 - File or directory not found' message which I haven't yet investigated but presume is unrelated. Haven't tested with other browsers yet. Any idea as to why I don't see the .svg graphics online appreciated?
-
I've written my first real web page: one .html file and one .css file with .svg and .png drawings in a images sub-directory using VS2008 as an editor and Inkscape and Graphviz Dot to generate the .svg and .png graphics. When I open the page from my Windows 8 PC using IE10 the .svg graphics are used, but when I upload it to the server I use, and open it using IE10 the .png graphics are loaded instead. http://www.jgdprojects.co.uk/HTMLPage.htm[^] I've used IE10 Dev Tools to validate the HTML5 and CSS and all seems fine according to the IE10 Dev Tools, apart from IE10 Compatability Mode and IE7 mode when I get a '404 - File or directory not found' message which I haven't yet investigated but presume is unrelated. Haven't tested with other browsers yet. Any idea as to why I don't see the .svg graphics online appreciated?
The simplest way to diagnose a problem like this is to use Fiddler[^]. All of the SVG files on your server are returning "404 - File not found" errors. The most likely cause is that IIS on the server doesn't have a MIME type configured for SVG files. As a security measure, IIS will not return static files which don't have a MIME type configured. There's information on adding the MIME types on the IIS site[^], using either the web.config file[^] or IIS Manager[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
The simplest way to diagnose a problem like this is to use Fiddler[^]. All of the SVG files on your server are returning "404 - File not found" errors. The most likely cause is that IIS on the server doesn't have a MIME type configured for SVG files. As a security measure, IIS will not return static files which don't have a MIME type configured. There's information on adding the MIME types on the IIS site[^], using either the web.config file[^] or IIS Manager[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
Richard, My Website host has added some XML around
to a config file and all's fine now. Thanks