protected void Application_Start(Object sender, EventArgs e) { AboutInfo.Instance.Copyright = AssemblyInfo.AssemblyCopyright + " All Rights Reserved"; AccessSettings.ReportingSpecificResources.SetRules(SerializationFormatRule.Allow()); PasswordCryptographer.EnableRfc2898 = true; PasswordCryptographer.SupportLegacySha512 = false; ASPxWebControl.CallbackError += new EventHandler(Application_Error); #if DEBUG TestScriptsManager.EasyTestEnabled = true; #endif isSecurityEnabled = false; WebApplication.EnableMultipleBrowserTabsSupport = true; }
protected void Application_Start(Object sender, EventArgs e) { SecurityAdapterHelper.Enable(); RouteTable.Routes.RegisterXafRoutes(); ASPxWebControl.CallbackError += new EventHandler(Application_Error); DevExpress.XtraReports.Web.WebDocumentViewer.DefaultWebDocumentViewerContainer.RegisterSingleton <WebDocumentViewerOperationLogger, ViewerOperationLogger>(); DevExpress.Security.Resources.AccessSettings.ReportingSpecificResources.SetRules(DirectoryAccessRule.Allow("C:\\StaticResources\\"), SerializationFormatRule.Deny(DevExpress.XtraReports.UI.SerializationFormat.CodeDom)); }
protected void Application_Start() { DevExpress.XtraReports.Web.WebDocumentViewer.Native.WebDocumentViewerBootstrapper.SessionState = System.Web.SessionState.SessionStateBehavior.Disabled; DevExpress.XtraReports.Web.QueryBuilder.Native.QueryBuilderBootstrapper.SessionState = System.Web.SessionState.SessionStateBehavior.Disabled; DevExpress.XtraReports.Web.ReportDesigner.Native.ReportDesignerBootstrapper.SessionState = System.Web.SessionState.SessionStateBehavior.Disabled; DevExpress.XtraReports.Web.ReportDesigner.DefaultReportDesignerContainer.EnableCustomSql(); AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); ModelBinders.Binders.DefaultBinder = new DevExpress.Web.Mvc.DevExpressEditorsBinder(); DevExpress.Web.ASPxWebControl.CallbackError += Application_Error; DevExpress.Web.Mvc.MVCxReportDesigner.StaticInitialize(); DevExpress.Web.Mvc.MVCxWebDocumentViewer.StaticInitialize(); DevExpress.XtraReports.Web.Extensions.ReportStorageWebExtension.RegisterExtensionGlobal(new ReportStorageWebExtension1()); DevExpress.Security.Resources.AccessSettings.ReportingSpecificResources.SetRules(SerializationFormatRule.Allow(SerializationFormat.Code, SerializationFormat.Xml)); }