2

How can I configure my Asp.net project to handle all requests for a custom file extension like ".coolpix" regardless of the request path in one ashx file.

Dizzle
  • 1,026
  • 13
  • 26

1 Answers1

2

If you want an application wild solution, a way to you archieve it, is by adding a handler mapping into your web.config:

  <system.webServer>
    <handlers>
      <add name="myExtensionHandler" preCondition="integratedMode" verb="GET" path="*.Extension" type="NameSpace.MyExtentionHandlerClass, DLLAssemblyName" />
    </handlers>
  </system.webServer>

Your MyExtentionHandlerClass should implement IHttpAsyncHandler or IHttpHandler

Cleiton
  • 17,663
  • 13
  • 46
  • 59