ASP.NET PageHandlerFactory (.html files)
<p>I have added the lines to the web.config to make .html files handled by the pagehandlerfactory - but it isn't working when I publish the site to a live web host. It works on my development box (Not using IIS), but I don't have any other options on my live to add anything... It's a shared hosting environment. </p>

<p>What should I try to do? I don't get any errors, so I know it can't be because of the root web.config overwriting.</p>

<pre><code>         &lt;compilation debug="true"&gt;
  &lt;assemblies&gt;
   &lt;add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
   &lt;add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
   &lt;add assembly="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
   &lt;add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
   &lt;add assembly="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
   &lt;add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
   &lt;add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
   &lt;add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
  &lt;/assemblies&gt;
  &lt;buildProviders&gt;
   &lt;add extension=".html" type="System.Web.Compilation.PageBuildProvider" /&gt;
  &lt;/buildProviders&gt;
 &lt;/compilation&gt;

     &lt;httpHandlers&gt;
  &lt;remove verb="*" path="*.asmx"/&gt;
  &lt;add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
  &lt;add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
  &lt;add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/&gt;
  &lt;add verb="*" path="*.mvc" validate="false" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
  &lt;add verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory" /&gt;
</code></pre>

<p>Then in the HTML page...</p>

<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" Inherits="System.Web.UI.Page" %&gt;
</code></pre>

<p></p>

<p>

 ...
    &lt;% Response.Write("Testing. This is content written by ASP.NET."); %></p>
