Как написать тип контента Excel при возвращении из MVC View
Response.ContentType = "application/vnd.ms-excel";
Response.AppendHeader("content-disposition", "attachment; filename=myfile.xls");
Inexpensive Iguana