Windows 8: Advanced Live Tiles, Part 2: Listing 3

Global.asax.cs with XML mediaFormat QueryStringMapping

using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using System.Net.Http.Formatting;

namespace VSMAdvancedTilesPart2.Service
    // Note: For instructions on enabling IIS6 or IIS7 classic mode, 
    // visit

    public class WebApiApplication : System.Web.HttpApplication
        protected void Application_Start()
               new QueryStringMapping("mediaFormat", "xml", "application/xml"));



About the Author

Eric Vogel is a Senior Software Developer for Red Cedar Solutions Group in Okemos, Michigan. He is the president of the Greater Lansing User Group for .NET. Eric enjoys learning about software architecture and craftsmanship, and is always looking for ways to create more robust and testable applications. Contact him at [email protected].

comments powered by Disqus


Subscribe on YouTube