Server no puede establecer el tipo de contenido después de que se hayan enviado los encabezados HTTP

Recibo un error (el servidor no puede establecer el tipo de contenido después de que se hayan enviado los encabezados HTTP) en el siguiente código ContentType línea). ¿Qué debo cambiar?

System.Web.HttpResponse response = System.Web.HttpContext.Current.Response;
response.ClearContent();
response.ContentType = "text/plain";
response.AddHeader("Content-Disposition", "attachment; filename=" + System.IO.Path.GetFileName(PervasiveConstants.DownloadZipLocation) + ";");
response.TransmitFile(PervasiveConstants.DownloadZipLocation);
response.Flush();
response.End();  

Esto está dentro de un elemento web de Sharepoint 2010.

Respuestas a la pregunta(10)

Su respuesta a la pregunta