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
  • 996
  • 13
  • 25

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
  • 16,623
  • 13
  • 43
  • 59