title: sitemap.xml url returns 404 Error
body: <p>I have a large affiliate marketing site with millions of products hosted on Windows Azure.
  For SEO I have to provide a sitemap.xml which is dynamically created.</p>
  
  <pre><code>  public ActionResult SiteMap()
      {
          string sitemapUrl = "https://trendley.blob.core.windows.net/sitemap/sitemap.xml";
  
          byte[] bImage = null;
          using (WebClient wc = new WebClient())
          {
              bImage = wc.DownloadData(sitemapUrl);
          }
          return File(bImage, "application/octet-stream");
      }
  </code></pre>
  
  <p>I added the follwoing route to my RouteConfig:</p>
  
  <pre><code>   routes.MapRoute("Sitemap",
  "sitemap.xml",
  new { controller = "Home", action = "Sitemap" });
  </code></pre>
  
  <p>Unfortunately this is not workting.
  I get -> <strong>HTTP Error 404.0 - Not Found</strong></p>
  
  <p>When I change "sitemap.xml" to sitemapxml (remove the extension) my controller method is invoked.
  Already did some research and played with my web.config but nothing seems to work.</p>
  
  <p>First thing I tried was to add:</p>
  
  <pre><code>&lt;modules runAllManagedModulesForAllRequests="true" /&gt;
  </code></pre>
  
  <p>Second thing:</p>
  
  <pre><code> &lt;add
  name="AdfsMetadata"
  path="sitemap.xml"
  verb="GET"
  type="System.Web.Handlers.TransferRequestHandler"
  preCondition="integratedMode,runtimeVersionv4.0" /&gt;
  </code></pre>
  
  <p>Can someone tell me how to acomplish this.
  Do I have to write my own Handler for this?</p>
  
  <p>Cheers,
  Stefan</p>