void Application_Start(object sender, EventArgs e) { // Code that runs on application startup RouteConfig.RegisterRoutes(RouteTable.Routes); /* Google Maps Clustering */ var filepath = string.Concat(HttpContext.Current.Server.MapPath("~"), @"App_Data\Points.csv"); var memcache = new MemCache(); var pointsDatabase = new PointsDatabase(memcache, filepath); var mapService = new MapService(pointsDatabase, memcache); Map.MapService = mapService; // Simulate putting data in session, probably dont do this in production where you put data in static class RegisterRoutes(); GlobalConfiguration.Configuration.Formatters.XmlFormatter.SupportedMediaTypes.Clear(); // use JSON }