protected void Application_Start() { AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); XmlWorks2.Prepare(); }
public ActionResult Customers() { while (true) { try { /*XmlDocument xDoc = new XmlDocument(); * xDoc.Load(AppDomain.CurrentDomain.GetData("DataDirectory") + "/test.xml"); */ XmlWorks2.Prepare(); return(View("Customers", XmlWorks2.root)); } catch (Exception e) { } } }