Custom file extensions for ASP.NET - help needed! Custom file extensions for ASP.NET - help needed! apache apache

Custom file extensions for ASP.NET - help needed!


Simple adding mime type is not enough - page is not interepreted but simply streamed to the browser.I don't know much about apache. But normally when you want to serve normal aspx page but with different extension you have to:

  1. Add your default aspx httphandler under custom extension like this:
 <httpHandlers>...<add verb="*" path="*.mycustomextension"> type="System.Web.UI.PageHandlerFactory"/>
  1. Register build provider:
<compilation >      <buildProviders>          <add extension=".mycustomextension" type="System.Web.Compilation.PageBuildProvider" />       </buildProviders>

Try it out maybe this will point you in the right direction