I have an MVC application that uses crystal reporting. I used the following code to download the report,
ReportDocument rd = new ReportDocument();
rd.Load(Path.Combine(Server.MapPath("~/Reports/" + Session["rpt"])));
rd.SetDataSource(Session["result"]);
Response.Buffer = false;
Response.ClearContent();
Response.ClearHeaders();
Stream stream = rd.ExportToStream(CrystalDecisions.Shared.ExportFormatType.Excel);
stream.Seek(0, SeekOrigin.Begin);
return File(stream, "application/vnd.ms-excel", "Cheque.xls");
Downloading reports in localhost. But when I placed this application on Godaddy's public hosting, it displays the following screen

source
share