Asp.net mvc Stimulsoft选项定义加载了错误路由的操作

Asp.net mvc Stimulsoft选项定义加载了错误路由的操作,asp.net-mvc,asp.net-core,stimulsoft,Asp.net Mvc,Asp.net Core,Stimulsoft,我在.net核心应用程序包含区域上使用Stimulsoft report,当我在TinetCodeDesignerOptions方法中定义报告操作并运行使用错误路由调用的应用程序操作时,如下所示: [area]/[action]/[controller] 我认为: @Html.StiNetCoreDesigner(new StiNetCoreDesignerOptions() { Actions = { GetReport ="GetReport",

我在.net核心应用程序包含区域上使用Stimulsoft report,当我在TinetCodeDesignerOptions方法中定义报告操作并运行使用错误路由调用的应用程序操作时,如下所示:

[area]/[action]/[controller]
我认为:

@Html.StiNetCoreDesigner(new StiNetCoreDesignerOptions()
{
    Actions =
    {
        GetReport ="GetReport",
        PreviewReport = "PreviewReport",
        DesignerEvent = "DesignerEvent",
    }
})
在我的控制器中:

[Area(AreaConstants.Automation)]
[Route("[area]/letter-print/[action]")]
public class LetterPrintController : Controller
{
    [HttpGet]
    public IActionResult Index()
    {
        return View();
    }

    [HttpGet]
    public IActionResult GetReport()
    {
        StiReport report = new StiReport();
        report.Load(StiNetCoreHelper.MapPath(this, "wwwroot/Reports/TwoSimpleLists.mrt"));

        return StiNetCoreDesigner.GetReportResult(this, report);
    }

    [HttpGet]
    public IActionResult PreviewReport()
    {
        var data = new DataSet("Demo");
        data.ReadXml(StiNetCoreHelper.MapPath(this, "wwwroot/Reports/Data/Demo.xml"));

        StiReport report = StiNetCoreDesigner.GetActionReportObject(this);
        report.RegData(data);

        return StiNetCoreDesigner.PreviewReportResult(this, report);
    }

    [HttpGet]
    public IActionResult DesignerEvent()
    {
        return StiNetCoreDesigner.DesignerEventResult(this);
    }
}
最后得到这个错误:

GET https://localhost:44379/Automation/DesignerEvent/LetterPrint?stiweb_component=Designer&stiweb_action=Resource&stiweb_cachemode=cache&stiweb_version=2019.3.5&stiweb_data=DesignerScripts net::ERR_ABORTED 404

Uncaught ReferenceError: StiMobileDesigner is not defined