We inherited a new product that we are now supporting. It is a web application that displays chart(s) using SVG.
On my machine, it runs perfectly. It loads and shows the SVG charts using Adobe SVG viewer 3.0. While on the customer machine, the SVG charts wont load.
I noticed that the web application is requesting for MSXML3 ActiveX control during page load. Even if you allow the said ActiveX control to run, the SVG charts wouldn’t appear.
I checked on my machine (Tools->Manage Add-ons->Enable or Disable Add-ons) and it doesn’t even use MSXML3.DLL. The only active add-on is Adobe SVG Viewer 3.0.
Both machine are using IE7 and both are using the same “data sets”.
What could be the possible issues here?
Thanks!
Customer’s machine have Visual Studio 2005 installed.
Adobe SVG Viewer and Visual Studio 2005 hates each other as documented in this KB article. http://support.microsoft.com/kb/916442
We embed the SVG chart like so:
When you have VS2005 installed, it “associates the application/xml MIME type with the .aspx file name extension” so now IE thinks that you are embedding an “aspx” file and when it discovers that this “aspx” file is an XML document, it will then try to load it as such (explains why it is asking for the MSXML3 ActiveX control).
As a work around, we need to “trick” IE that we are actually embedding an SVG file by adding the following parameters at the end of the URL:
Like so: