Page 1 of 1

Show designer - Error 500 - Internal Server Error

Posted: Wed Feb 14, 2018 7:03 pm
by Stéphane
Hello,

I'm evaluating Stimulsoft.Reports.Web.NetCore. I'm only trying to open the designer :

Code: Select all

@Html.StiNetCoreDesigner(new StiNetCoreDesignerOptions()
{
    Actions = { GetReport = nameof(DesignerController.GetReport), DesignerEvent = nameof(DesignerController.DesignerEvent) }
})

Code: Select all

public IActionResult GetReport()
{
    var report = new StiReport();
    var dataSet = StiJsonToDataSetConverterV2.GetDataSet(jsonString);
    report.RegData(dataSet);
    report.Dictionary.Synchronize();
    return StiNetCoreDesigner.GetReportResult(this, report);
}

public IActionResult DesignerEvent()
{
    return StiNetCoreDesigner.DesignerEventResult(this);
}
The dataSet seems ok, but when the designer opens, I get an Error 500 - Internal Server Error.

What I am doing wrong ?

Cordially,
Stéphane.

Re: Show designer - Error 500 - Internal Server Error

Posted: Thu Feb 15, 2018 7:26 am
by Edward
Hi Stéphane,

Everything is ok with the code you kindly shared. Please check that the Visual Studio has got all the latest updates for PC or Mac.
If you just open our sample solution for .Net Core2.0:
https://github.com/stimulsoft/Samples-N ... MVC-CSharp

, could you reproduce the same error?

Thank you,
Edward

Re: Show designer - Error 500 - Internal Server Error

Posted: Thu Feb 15, 2018 11:34 am
by Stéphane
As it worked with your sample solution, I continued to search in my code. I found the problem, it was a side effect of my method to get the json data. I updated this method and it works great now.
Thanks for the quick answer.

Re: Show designer - Error 500 - Internal Server Error

Posted: Thu Feb 15, 2018 1:58 pm
by Edward
Hi Stéphane,

No problem at all :) Thank you for the update, good to know that it worked. Please let us know if you need any help with your evaluation/proof of concept.

Thank you,
Edward