Error after publishing site

Stimulsoft Reports.NET discussion
Post Reply
mkeuschn
Posts: 17
Joined: Thu Apr 03, 2014 8:56 am

Error after publishing site

Post by mkeuschn »

Hello *,

after publishing site I get following error: 500 (Internal Server Error)

StiMvcViewer.postAjax
StiMvcViewer.postAction

How can I get a more specific error message?

regards,
Marko
mkeuschn
Posts: 17
Joined: Thu Apr 03, 2014 8:56 am

Re: Error after publishing site

Post by mkeuschn »

I have the solution:

Code: Select all

StiReport report = new StiReport();
try
{
    report.Load(Server.MapPath("~/Content/Reports/EntireNursingHomes.mrt"));
    report.RegData("ResidentData", residents);
    report.RegData("PlaceTypeData", placeTypes);
    report.RegData("PlaceTypesString", new { PlaceTypesString = placeTypesString });
    return StiMvcViewer.GetReportSnapshotResult(HttpContext, report);
}
catch (Exception e)
{
    return new HttpStatusCodeResult(HttpStatusCode.BadRequest, "Custom Error Message: " + e.Message);
}
And the failure was that I have forget to include the mrt in my mvc project and so the publish process has not deployed the report file.

regards,
Marko
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Error after publishing site

Post by HighAley »

Hello.

It's good that you have solved your problem.
Let us know if you need any additional help.

Thank you.
Post Reply