protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            ViewerMvc.InitRoutes();
            Viewer.SetBaseUrl("/");

            Viewer.SetLicensePath(@"d:\temp\TestLicensesWithNewKey\GroupDocs Viewer2015-05-29.lic");
            string rootStoragePath = @"d:\temp\";

            Viewer.SetRootStoragePath(rootStoragePath);

            //ViewerAspNet.InitAspNetRoutes(); // must be after SetRootStoragePath() because handlers are created immediately

            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);
            ControllerBuilder.Current.SetControllerFactory(new ViewerSelectiveControlerFactory());
        }
Beispiel #2
0
 public static void Start()
 {
     ViewerMvc.InitDependencyInjection();
 }