Page 1 of 1

Error after publishing site

Posted: Fri May 23, 2014 9:13 am
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

Re: Error after publishing site

Posted: Fri May 23, 2014 9:48 am
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

Re: Error after publishing site

Posted: Fri May 23, 2014 12:58 pm
by HighAley
Hello.

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

Thank you.