I have a MVC application that uses crystal report. I have 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();
//Excel
Stream stream = rd.ExportToStream(CrystalDecisions.Shared.ExportFormatType.Excel);
stream.Seek(0, SeekOrigin.Begin);
return File(stream, "application/vnd.ms-excel", "Cheque.xls");
Report downloading working fine in localhost. But when I have hosted this application in Godaddy's shared hosting, gives the following screen