title: Use routing in HTTPHandler
body: <p>I want to use HTTP Handler in order to create a RSS feeds.  </p>
  
  <p>For the purpose, I want to put my logic for creating the rss XML in C# class, which implement IHttpHandler, then to "map" this handler into the web.config file and to register the "mapped name" in my routing rules. I am doing something like this:  </p>
  
  <p>My HTTPHanlder:</p>
  
  <pre><code>public class RSSFeedHandler:IHttpHandler  
  {   
      public void ProcessRequest( HttpContext context )  
      {   
          //logic for building the XML   
          context.Response.ContentType = "text/xml";   
          context.Response.Write( XMLContent);   
          .....................................  
  </code></pre>
  
  <p>My Web.Config:   </p>
  
  <pre><code>&lt;httpHandlers&gt;
    &lt;add path="Rss" verb="*" type="RSSFeedHandler" validate="false" /&gt;
  .......   
  &lt;handlers&gt; 
    &lt;add name="RSSFeedHandler" path="Rss" verb="*" type="RSSFeedHandler" /&gt;
     ........  
  </code></pre>
  
  <p>My Routing rulse in global.asax: </p>
  
  <pre><code>RoutingHandler rssHandler = new RoutingHandler( "~/rss" );   
   .........   
   routes.Add( new Route( "rss/{type}/{id}", rssHandler ) );  
  </code></pre>
  
  <p>My Routing Hanlder:  </p>
  
  <pre><code>public class RoutingHandler : IRouteHandler    
  {  
      ............................   
      public IHttpHandler GetHttpHandler( RequestContext requestContext )   
      {   
  </code></pre>
  
  <p>So, I want when in the address bar, the user types something like: www.mysite.com/rss/news/25 for example,
  the server to execute the logic from the HTTP Handler and to show the rss feed for type 'news' with id '25'. (these routing parameters should be parsed into my RSS HTTPHanlder)   </p>
  
  <p>The problem is, that, when I am calling an URL similar to the one above, there is an ERROR in GetHttpHandler method, which says: "The file '/Rss' does not exist."  </p>
  
  <p>I think, that this is because, this method has been invoked before the 'mapping' in web.config, but I am not sure.  </p>
  
  <p>Do you know how can I achieve the funcionality that I want?</p>