Hi all,
I have a problem regarding the embed tag using IE6 with most recent security
patches running on a Windows XP.
The following scenario lets me loose hours figuring out the reason, why it
doesn't work :-( :
I have a simple ASPX-page containing an EMBED-tag, which refers to another
page, which dynamically creates SVG code.
<html>
<embed src="svgContent.aspx" id=svg width="888" height="1050"
type="image/svg+xml" />
</html>
This worked fine until a few weeks ago. Until then, IE 6 just shows an empty
page. No errors, no nothing, only a
white readonly frame with no content. Checking the html-protocol it seems,
IE just doesn't adress the "svgContent.aspx" at all. It's not even trying to
load the page. On an older machine, this works perfectly.
So I guess, it must be a security issue. But scanning the web I found
nothing that could give me a hint and what I could do making it work again.
Also, if I link the src attribute to static content, eg. helloworl.svg,
everything works perfectly. It seams, IE6 (or IIS6) realizes, that there is
dynamic
content and does not allow redirecting it to the SVG-ActiveX Control.
The svgContent.aspx looks something like this:
<script language="c#" runat="server">
protected override void Render(HtmlTextWriter writer)
{
string svgSource = Server.MapPath(@"svgsimple1.svg");
Response.ClearContent();
Response.ContentType = "image/svg+xml?";
System.IO.StreamReader reader = new
System.IO.StreamReader(svgSource);
string content = reader.ReadToEnd();
reader.Close();
Response.Write(content);
Response.Flush();
Response.End();
}
</script>
Of course, this sample makes not much sense, since I just load a static
svg-file. In the real application, the code is fully dynamically composed
and written into
the Response object.
These are the configurations:
Client:
- IE6 running on Windows XP SP2
- most recent security patches
- Adobe SVG Viewer 3.03 installed
Server:
Windows Server 2003 with IIS 6
Anybody has an idea, how to solve this problem?
Any help appreciated!
Thanks in advance
Daniel