0

Is it possible to map a specific filename and extension to ASP.NET in IISExpress (via web.config)?

I need ASP.NET to handle requests to opensearch.xml.

Ben Foster
  • 33,525
  • 36
  • 167
  • 284

1 Answers1

0

The solution was to create a handler to map the required path to the MvcHttpHandler:

<handlers>
  <add name="OpenSearchHandler" 
       path="opensearch.xml" 
       verb="GET" 
       type="System.Web.Mvc.MvcHttpHandler"/>
</handlers>
Ben Foster
  • 33,525
  • 36
  • 167
  • 284