Show designer - Error 500 - Internal Server Error

Stimulsoft Reports.WEB discussion
Post Reply
Stéphane
Posts: 12
Joined: Fri Jun 30, 2017 11:32 am

Show designer - Error 500 - Internal Server Error

Post 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.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Re: Show designer - Error 500 - Internal Server Error

Post 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
Stéphane
Posts: 12
Joined: Fri Jun 30, 2017 11:32 am

Re: Show designer - Error 500 - Internal Server Error

Post 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.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Re: Show designer - Error 500 - Internal Server Error

Post 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
Post Reply