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
Error after publishing site
Re: Error after publishing site
I have the solution:
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
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);
}
regards,
Marko
Re: Error after publishing site
Hello.
It's good that you have solved your problem.
Let us know if you need any additional help.
Thank you.
It's good that you have solved your problem.
Let us know if you need any additional help.
Thank you.