示例#1
0
        protected void Application_Start(object sender, EventArgs e)
        {
            MasterPageVirtualPathProvider vpp = new MasterPageVirtualPathProvider();

            HostingEnvironment.RegisterVirtualPathProvider(vpp);

            RunningImports = new Dictionary <Guid, DataUpload>();
            AllSessions    = new Dictionary <string, Dictionary <Guid, HttpSessionState> >();
            SessionSynch   = new SessionSynch();
        }
        void Application_Start(object sender, EventArgs e)
        {
            // Code that runs on application startup
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AuthConfig.RegisterOpenAuth();
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            MasterPageVirtualPathProvider vpp = new MasterPageVirtualPathProvider();

            HostingEnvironment.RegisterVirtualPathProvider(vpp);
        }
示例#3
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);


            MasterPageVirtualPathProvider vpp = new MasterPageVirtualPathProvider();

            HostingEnvironment.RegisterVirtualPathProvider(vpp);
        }