I am having a user who is reporting that files are being displayed as raw data in his browser. He uses Internet Explorer.
The files are being served via a .ashx handler file and it has been working until.
This is the relevant part of my .ashx handler:
context.Response.Clear() context.Response.AppendHeader("Content-Disposition", "attachment; filename=" + name) context.Response.AppendHeader("Content-Length", size.ToString) context.Response.ContentType = "application/pdf" context.Response.TransmitFile(fullname) context.Response.Flush() HttpContext.Current.ApplicationInstance.CompleteRequest()