I use following C# code behind an aspx file to send a *.pdf file to the
Internet Explorer.
The variable "buffer" is of type byte[] and is filled with the contents of a
*.pdf file.
Expand|Select|Wrap|Line Numbers
- this.Response.ClearHeaders();
- this.Response.Clear();
- this.Response.ContentType = "application/pdf";
- this.Response.BinaryWrite(buffer);
- this.Response.End();
reader is activated and the pdf file is shown.
Now I have installed Visual Studio 2005 parallel to Visual Studio 2003. All
seems to run as expected, except the pdf file is not shown anymore. The
Internet Explorer 6 shows only a white background, but does not start
acrobat reader. When I try to see the source text, I get an error message,
that the "xml source cannot be shown".
After deinstalling Visual Studio 2005 by Windows System Recovery all runs
normal again.
Any idea?