Example #1
0
        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();
        }
Example #2
0
        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();
        }
Example #3
0
        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();
        }
Example #4
0
        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);
        }
Example #5
0
        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);
        }
Example #6
0
        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();
        }