Código PHP:
DataTableReader RS = dt.CreateDataReader();
byte[] byteArray = GetData(RS);
// context.Response.ClearHeaders();
context.Response.Clear();
//context.Response.Headers("Content-Disposition", "attachment; filename=foo.xls");
//context.Response.AddHeader("Content-Length", byteArray.Length.ToString());
//context.Response.ContentType = "application/octet-stream";
context.Response.ContentType = "application/x-msexcel";
context.Response.Charset = "";
context.Response.BinaryWrite(byteArray);
context.Response.Flush();
context.Response.End();
esto es lo que marca:
context.Response.SubStatusCode threw an exception of type System.PlatformNotSupportedException
{"This operation requires IIS integrated pipeline mode."}
espero ayudeen :S