Bryan Kardisco

So here's the problem.

I have an application that is using an HTTP Listener, I'm using this to send an XML file to the user. I've tried Opera and Firefox and it works perfectly; the user is prompted with the "Save As" Box and can save the file as desired.

However, when I open up Internet Explorer I get the error "Internet Explorer cannot display the webpage"

I'm using the Response.AddHeader code to add headers to the document and they are as followed

public HttpListenerContext httpConn;
httpListener.Prefixes.Add("http://localhost:12221/XmlFile/");
httpConn = httpListener.GetContext();

then I go

httpConn.Response.AddHeader("Content-Disposition", "attachment; filename=XmlFile");

Like I said, this works fine in Firefox and Opera; but not in IE. Any suggestions