Make IIS 7.5 pass *.xml requests to asp.net


How do I configure IIS 7.5 to forward all *.xml file requests to asp.net engines so i can handle them in Global.asax and rewrite the path to a *.aspx file? Now IIS is expecting to find them directly on disk. I will use this do dynamically generate my sitemap.xml


You can force static files to go through the ASP.NET pipeline by editing your web.config:

<system.webServer> <handlers> <add name="XMLHandler" type="System.Web.StaticFileHandler" path="*.xml" verb="GET" /> </handlers> </system.webServer> <ol><li><a href="http://msdn.microsoft.com/en-us/library/bb398986.ASPX" rel="nofollow">HTTP Handlers and HTTP Modules Overview</a></li> <li><a href="http://msdn.microsoft.com/en-us/library/46c5ddfy.ASPX" rel="nofollow">How to: Register HTTP Handlers</a></li> </ol>


  • Using asp.net MVCSiteMapProvider v4 with 2 sitemap
  • Failure to update Laravel 5.1 to 5.2 (these conflict with your requirements or minimum-stability)
  • mod-rewrite rule for sitemap.xml
  • How to download and unzip a sitemap gz file in c#?
  • Serializing socket
  • Collect HostCPU utilisation and disk I/O speed using XenServer Java API
  • Are there algorithms for putting a digest into the file being digested?
  • Excel VBA Intersect
  • How to get the index of element in the List in c#
  • R h2o.glm - issue with max_active_predictors
  • help('modules') crashing? Not sure how to fix
  • Refactoring advice: maps to POJOs
  • Regex for URL rewrite with optional query string parameters
  • how to set to NULL all the filestream varbinary(max) fields?
  • What is corresponding c++ data type to SQL numeric(18,0) data type?
  • IE6 changes DOCTYPE to a bad one
  • Other than Linq to SQL does anything else consume INotifyPropertyChanging?
  • Doctrine/Symfony entity generator and generating entity from one table
  • Switch to popup in python using selenium
  • Redshift Querying: error xx000 disk full redshift
  • Default parameter as generic type
  • List images(01.png) and descriptions(01.txt) from directory
  • Apache RewriteRule redirection with url encoded
  • Use of this Javascript
  • How to use an array of arrays with array_map(…) in PHP?
  • Initializer list vs. initialization method
  • Nant, Vault & Windows Integrated Authentication
  • script to move all files from one location to another location
  • ILMerge & Keep Assembly Name
  • sending/ receiving email in Java
  • Symfony2: How to get request parameter
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • How to delete a row from a dynamic generate table using jquery?
  • Proper way to use connect-multiparty with express.js?
  • need help with bizarre java.net.HttpURLConnection behavior
  • How can I remove ASP.NET Designer.cs files?
  • python draw pie shapes with colour filled
  • Is there any way to bind data to data.frame by some index?
  • Checking variable from a different class in C#
  • How can i traverse a binary tree from right to left in java?