O tipo mime de transmissão 'application / pdf' do aplicativo asp falha no Google Chrome
Tenho um aplicativo Web que transmite um arquivo PDF em um evento de clique, funciona bem no IE, Firefox e Safari, mas no Chrome ele nunca é baixado. O download apenas lê "Interrompido". O Chrome lida com a transmissão de maneira diferente? Meu código se parece com:
this.Page.Response.Buffer = true;
this.Page.Response.ClearHeaders();
this.Page.Response.ClearContent();
this.Page.Response.ContentType = "application/pdf";
this.Page.Response.AppendHeader("Content-Disposition", "attachment;filename=" + fileName);
Stream input = reportStream;
Stream output = this.Page.Response.OutputStream;
const int Size = 4096;
byte[] bytes = new byte[4096];
int numBytes = input.Read(bytes, 0, Size);
while (numBytes > 0)
{
output.Write(bytes, 0, numBytes);
numBytes = input.Read(bytes, 0, Size);
}
reportStream.Close();
reportStream.Dispose();
this.Page.Response.Flush();
this.Page.Response.Close();
Alguma sugestão sobre o que posso estar perdend