protected void Application_Start() { AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); DbInterception.Add(new SchoolInterceptorTransientErrors()); DbInterception.Add(new SchoolInterceptorLogging()); //its important to set RelativePathToServer otherwise jsreport will run from bin folder //that would cause application recycle with every generated report EmbeddedReportingServer = new EmbeddedReportingServer() { RelativePathToServer = "../App_Data" }; //wait for nodejs server to start EmbeddedReportingServer.StartAsync().Wait(); //synchronize local *.jsrep files with embedded server EmbeddedReportingServer.ReportingService.SynchronizeTemplatesAsync().Wait(); //alternatively you can also use a remote jsreport server on prem or even jsreportonline //var reportingService = new ReportingService("http://localhost:2000") //reportingService.SynchronizeTemplatesAsync().Wait(); }
protected void Application_Start() { EmbeddedReportingServer = new EmbeddedReportingServer(); EmbeddedReportingServer.StartAsync().Wait(); AreaRegistration.RegisterAllAreas(); WebApiConfig.Register(GlobalConfiguration.Configuration); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); AuthConfig.RegisterAuth(); }
protected void Application_Start() { EmbeddedReportingServer = new EmbeddedReportingServer() { RelativePathToServer = "../App_Data" }; EmbeddedReportingServer.StartAsync().Wait(); JsReportWebHandler.ReportingService = EmbeddedReportingServer.ReportingService; AreaRegistration.RegisterAllAreas(); WebApiConfig.Register(GlobalConfiguration.Configuration); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); DbInterception.Add(new SchoolInterceptorTransientErrors()); DbInterception.Add(new SchoolInterceptorLogging()); //its important to set RelativePathToServer otherwise jsreport will run from bin folder //that would cause application recycle with every generated report EmbeddedReportingServer = new EmbeddedReportingServer(){ RelativePathToServer = "../App_Data"}; //wait for nodejs server to start EmbeddedReportingServer.StartAsync().Wait(); //synchronize local *.jsrep files with embedded server EmbeddedReportingServer.ReportingService.SynchronizeTemplatesAsync().Wait(); //alternatively you can also use a remote jsreport server on prem or even jsreportonline //var reportingService = new ReportingService("http://localhost:2000") //reportingService.SynchronizeTemplatesAsync().Wait(); }