Example #1
0
        protected void Application_Start(object sender, EventArgs e)
        {
            AreaRegistration.RegisterAllAreas();

            //WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            //BundleConfig.RegisterBundles(BundleTable.Bundles);
            System.Web.Http.GlobalConfiguration.Configure(WebApiConfig.Register);
            ValueProviderFactories.Factories.Remove(
                ValueProviderFactories.Factories.OfType <JsonValueProviderFactory>().First());

            ViewEngines.Engines.Clear();
            ViewEngines.Engines.Add(new RazorViewEngine());

            SiteInitialization.ApplicationStart();

            System.Data.SqlClient.SqlDependency.Start(@"Data Source=localhost; Initial Catalog=SmartAccess; User ID=sa;Password=smarti123;Integrated Security=False");
        }
Example #2
0
 protected void Application_End(object sender, EventArgs e)
 {
     SiteInitialization.ApplicationEnd();
 }