.Net with a crystal report that does not work on shared hosting

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();
 //Excel
 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 enter image description here

+4
source share
2 answers

Shared hosting Godaddy does not support Crystal report. Not only Godaddy hosting, but most hosting provider hosting do not support Crystal Reports. To use the Crystal report, you need to purchase a VPS or a dedicated server.

Crystal , Crystal Reports . GoDaddy , insatllation Crystal Reports.

:

GoDaddy OleDbPermission, OdbcPermission WebPermission.

, , Windows . . , , .

, , .

, Crystal Report, http://asphostportal.com. . .

+6

- log4net.  

0

Source: https://habr.com/ru/post/1689997/


All Articles