prova a mettere un Response.End()
al termine della BinaryWrite