Error: Timeout response from the server in Stimulsoft ASP MVC 5

Error: Timeout response from the server in Stimulsoft ASP MVC 5

我已经构建了一个 MRT 文件 (Hesab.mrt),并且我在查询中使用了一个参数来控制要返回的结果的数量。 现在一切正常,直到我输入大量要返回的结果。 然后我得到一个 "Error: Timeout response from the server." 错误。

    StiReport sr = new StiReport();
    sr.Load(Server.MapPath(@"~/Content/Reports/Hesab.mrt"));            
    sr.RegBusinessObject("Details", "Details", reportList ); 
    sr.Render();         
    return Stimulsoft.Report.Mvc.StiMvcViewer.GetReportSnapshotResult(this.HttpContext, sr);

请为 MvcViewer 组件设置一个 ClientRequestTimeout 选项,该值以秒为单位设置。默认值为 20 秒。

@Html.Stimulsoft().StiMvcViewer(
    "Reports",
    new StiMvcViewerOptions() {
        Controller = "Reports",
        ActionGetReportSnapshot = "GetReportSnapshot",
        ActionViewerEvent = "ViewerEvent",
        ActionExportReport = "ExportReport",
        ActionPrintReport = "PrintReport",       
        ClientRequestTimeout = 12345, // <---------------
    }
)

在 2018.1.6.0 版本中,这段代码对我有用。

@Html.Stimulsoft().StiMvcDesigner( 
     new StiMvcDesignerOptions() {    
         Server = new StiMvcViewerOptions.ServerOptions()   
         {    
             RequestTimeout = 30    
         }    
     }
)